Add TPL files

This commit is contained in:
2025-05-12 15:46:37 +00:00
parent 4a4ed02e8a
commit b4d54ba40b
894 changed files with 120580 additions and 0 deletions

69
modules/ACLRoles/DetailView.tpl Executable file
View File

@@ -0,0 +1,69 @@
{*
/*********************************************************************************
* 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 action="index.php" method="post" name="DetailView" id="form">
<input type="hidden" name="module" value="ACLRoles">
<input type="hidden" name="user_id" value="">
<input type="hidden" name="record" value="{$ROLE.id}">
<input type="hidden" name="isDuplicate" value=''>
<input type='hidden' name='return_record' value='{$RETURN.record}'>
<input type='hidden' name='return_action' value='{$RETURN.action}'>
<input type='hidden' name='return_module' value='{$RETURN.module}'>
<input type="hidden" name="action">
<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="button primary" onclick="this.form.action.value='EditView'" type="submit" name="button" value=" {$APP.LBL_EDIT_BUTTON} "> <input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="this.form.isDuplicate.value='1'; this.form.action.value='EditView'" type="submit" name="button" value=" {$APP.LBL_DUPLICATE_BUTTON} "> <input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="this.form.return_module.value='ACLRoles'; this.form.return_action.value='index'; this.form.action.value='Delete'; return confirm('{$APP.NTC_DELETE_CONFIRMATION}')" type="submit" name="button" value=" {$APP.LBL_DELETE_BUTTON} ">
</form>
</p>
<p>
<TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
<TR>
<td valign='top' width='15%' align='right'><b>{$MOD.LBL_NAME}:</b></td><td width='85%' colspan='3'>{$ROLE.name}</td>
</tr
><TR>
<td valign='top' width='15%' align='right'><b>{$MOD.LBL_DESCRIPTION}:</b></td><td colspan='3' valign='top' width='85%' align='left'>{$ROLE.description | nl2br}</td>
</tr></table>
</p>
<p>
{include file="modules/ACLRoles/EditViewBody.tpl" }

View 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%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
<TR>
<td style="background: transparent;"></td>
{foreach from=$ACTION_NAMES item="ACTION_NAME" }
<td style="text-align: center;" scope="row"><b>{$ACTION_NAME}</b></td>
{foreachelse}
<td colspan="2">&nbsp;</td>
{/foreach}
</TR>
{foreach from=$CATEGORIES item="TYPES" key="CATEGORY_NAME"}
{if $APP_LIST.moduleList[$CATEGORY_NAME]!='Users'}
<TR>
{if $APP_LIST.moduleList[$CATEGORY_NAME]=='Users'}
<td nowrap width='1%' scope="row"><b>{$MOD.LBL_USER_NAME_FOR_ROLE}</b></td>
{else}
<td nowrap width='1%' scope="row"><b>{$APP_LIST.moduleList[$CATEGORY_NAME]}</b></td>
{/if}
{foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
{assign var='ACTION_FIND' value='false'}
{foreach from=$TYPES item="ACTIONS" key="TYPE_NAME"}
{foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
{if $ACTION_NAME==$ACTION_NAME_ACTIVE}
{assign var='ACTION_FIND' value='true'}
<td width='{$TDWIDTH}%' align='center'><div align='center' class="acl{$ACTION.accessLabel|capitalize}"><b>{$ACTION.accessName}</b></div></td>
{/if}
{/foreach}
{/foreach}
{if $ACTION_FIND=='false'}
<td nowrap width='{$TDWIDTH}%' style="text-align: center;">
<div><font color='red'>N/A</font></div>
</td>
{/if}
{/foreach}
</TR>
{/if}
{foreachelse}
<tr> <td colspan="2">No Actions</td></tr>
{/foreach}
</TABLE>

View 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".
********************************************************************************/
*}
{include file="modules/ACLRoles/DetailViewBody.tpl" }

126
modules/ACLRoles/EditAllBody.tpl Executable file
View File

@@ -0,0 +1,126 @@
{*
/*********************************************************************************
* 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 method='POST' name='EditView' id='ACLEditView'>
<input type='hidden' name='record' value='{$ROLE.id}'>
<input type='hidden' name='module' value='ACLRoles'>
<input type='hidden' name='action' value='Save'>
<input type='hidden' name='return_record' value='{$RETURN.record}'>
<input type='hidden' name='return_action' value='{$RETURN.action}'>
<input type='hidden' name='return_module' value='{$RETURN.module}'>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save';aclviewer.save('ACLEditView');return false;" type="button" name="button" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " > &nbsp;
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" class='button' accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" type='button' name='save' value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " class='button' onclick='aclviewer.view("{$ROLE.id}", "All");'>
</p>
<p>
</p>
<TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
<TR>
<td></td>
{foreach from=$ACTION_NAMES item="ACTION_NAME" }
<td align='center'><div align='center'><b>{$ACTION_NAME}</b></div></td>
{foreachelse}
<td colspan="2">&nbsp;</td>
{/foreach}
</TR>
{literal}
{/literal}
{foreach from=$CATEGORIES item="TYPES" key="CATEGORY_NAME"}
{if $APP_LIST.moduleList[$CATEGORY_NAME]!='Users'}
<TR>
<td nowrap width='1%'><b>
{if $APP_LIST.moduleList[$CATEGORY_NAME]=='Users'}
{$MOD.LBL_USER_NAME_FOR_ROLE}
{elseif !empty($APP_LIST.moduleList[$CATEGORY_NAME])}
{$APP_LIST.moduleList[$CATEGORY_NAME]}
{else}
{$CATEGORY_NAME}
{/if}
</b></td>
{foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
{assign var='ACTION_FIND' value='false'}
{foreach from=$TYPES item="ACTIONS"}
{foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
{if $ACTION_NAME==$ACTION_NAME_ACTIVE}
<td nowrap width='{$TDWIDTH}%' style="text-align: center;">
<div style="display: none" id="{$ACTION.id}">
{if $APP_LIST.moduleList[$CATEGORY_NAME]==$APP_LIST.moduleList.Users && $ACTION_LABEL !='Access Type'}
<select DISABLED name='act_guid{$ACTION.id}' id = 'act_guid{$ACTION.id}' onblur="document.getElementById('{$ACTION.id}link').innerHTML=this.options[this.selectedIndex].text; aclviewer.toggleDisplay('{$ACTION.id}');" >
{html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
</select>
{else}
<select name='act_guid{$ACTION.id}' id = 'act_guid{$ACTION.id}' onblur="document.getElementById('{$ACTION.id}link').innerHTML=this.options[this.selectedIndex].text; aclviewer.toggleDisplay('{$ACTION.id}');" >
{html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
</select>
{/if}
</div>
{if $ACTION.accessLabel == 'dev' || $ACTION.accessLabel == 'admin_dev'}
<div class="aclAdmin" id="{$ACTION.id}link" onclick="aclviewer.toggleDisplay('{$ACTION.id}')">{$ACTION.accessName}</div>
{else}
<div class="acl{$ACTION.accessName}" id="{$ACTION.id}link" onclick="aclviewer.toggleDisplay('{$ACTION.id}')">{$ACTION.accessName}</div>
{/if}
</td>
{assign var='ACTION_FIND' value='true'}
{/if}
{/foreach}
{/foreach}
{if $ACTION_FIND=='false'}
<td nowrap width='{$TDWIDTH}%' style="text-align: center;">
<div><font color='red'>N/A</font></div>
</td>
{/if}
{/foreach}
</TR>
{/if}
{foreachelse}
<tr> <td colspan="2">No Actions Defined</td></tr>
{/foreach}
</TABLE>
<div style="padding-top:10px;">
&nbsp;<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save';aclviewer.save('ACLEditView');return false;" type="button" name="button" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " > &nbsp;
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" class='button' accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" type='button' name='save' value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " class='button' onclick='aclviewer.view("{$ROLE.id}", "All");'>
</div>
</form>

95
modules/ACLRoles/EditRole.tpl Executable file
View File

@@ -0,0 +1,95 @@
{*
/*********************************************************************************
* 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 method='POST' name='EditView' id='ACLEditView'>
<input type='hidden' name='record' value='{$ROLE.id}'>
<input type='hidden' name='module' value='ACLRoles'>
<input type='hidden' name='action' value='Save'>
<input type='hidden' name='return_record' value='{$RETURN.record}'>
<input type='hidden' name='return_action' value='{$RETURN.action}'>
<input type='hidden' name='return_module' value='{$RETURN.module}'>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save';aclviewer.save('ACLEditView');return false;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" > &nbsp;
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" class='button' accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" type='button' name='save' value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class='button' onclick='aclviewer.view("{$ROLE.id}", "All");'>
<br>
<TABLE width='100%' class='detail view' border='0' cellpadding=0 cellspacing = 1 >
{if !empty($CATEGORIES[$CATEGORY_NAME])}
<TR>
{foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
{foreach from=$CATEGORIES[$CATEGORY_NAME] item="ACTIONS"}
{foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
{if $ACTION_NAME==$ACTION_NAME_ACTIVE}
<td align='center'><div align='center'><b>{$ACTION_LABEL}</b></div></td>
{/if}
{/foreach}
{/foreach}
{foreachelse}
<td colspan="2">&nbsp;</td>
{/foreach}
</TR>
<TR>
{foreach from=$ACTION_NAMES item="ACTION_LABEL" key="ACTION_NAME"}
{foreach from=$CATEGORIES[$CATEGORY_NAME] item="ACTIONS"}
{foreach from=$ACTIONS item="ACTION" key="ACTION_NAME_ACTIVE"}
{if $ACTION_NAME==$ACTION_NAME_ACTIVE}
<td nowrap width='{$TDWIDTH}%' style="text-align: center;" >
<div style="display: none" id="{$ACTION.id}">
{if $APP_LIST.moduleList[$CATEGORY_NAME]==$APP_LIST.moduleList.Users && $ACTION_LABEL !='Access Type'}
<select DISABLED class="acl{$ACTION.accessName}" name='act_guid{$ACTION.id}' id = 'act_guid{$ACTION.id}' onblur="document.getElementById('{$ACTION.id}link').innerHTML=this.options[this.selectedIndex].text; aclviewer.toggleDisplay('{$ACTION.id}');" >
{html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
</select>
{else}
<select class="acl{$ACTION.accessName}" name='act_guid{$ACTION.id}' id = 'act_guid{$ACTION.id}' onblur="document.getElementById('{$ACTION.id}link').innerHTML=this.options[this.selectedIndex].text; aclviewer.toggleDisplay('{$ACTION.id}');" >
{html_options options=$ACTION.accessOptions selected=$ACTION.aclaccess }
</select>
{/if}
</div>
<div class="acl{$ACTION.accessName}" id="{$ACTION.id}link" onclick="aclviewer.toggleDisplay('{$ACTION.id}')">{$ACTION.accessName}</div>
</td>
{/if}
{/foreach}
{/foreach}
{foreachelse}
<td colspan="2">&nbsp;</td>
{/foreach}
</TR>
{else}
<tr> <td colspan="2">No Actions Defined</td></tr>
{/if}
</TABLE>

84
modules/ACLRoles/EditView.tpl Executable file
View File

@@ -0,0 +1,84 @@
{*
/*********************************************************************************
* 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>
{literal}
function set_focus(){
document.getElementById('name').focus();
}
{/literal}
</script>
<form method='POST' name='EditView' action='index.php'>
<TABLE width='100%' border='0' cellpadding=0 cellspacing = 0 class="actionsContainer">
<tbody>
<tr>
<td>
<input type='hidden' name='record' value='{$ROLE.id}'>
<input type='hidden' name='module' value='ACLRoles'>
<input type='hidden' name='action' value='Save'>
<input type='hidden' name='isduplicate' value='{$ISDUPLICATE}'>
<input type='hidden' name='return_record' value='{$RETURN.record}'>
<input type='hidden' name='return_action' value='{$RETURN.action}'>
<input type='hidden' name='return_module' value='{$RETURN.module}'> &nbsp;
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" id='save_button' accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="this.form.action.value='Save';return check_form('EditView');" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" >
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" class='cancel_button' accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" type='submit' name='save' value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class='button' onclick='document.EditView.action.value="{$RETURN.action}";document.EditView.module.value="{$RETURN.module}";document.EditView.record.value="{$RETURN.record}";document.EditView.submit();'>
</td>
</tr>
</tbody>
</table>
<TABLE width='100%' class="edit view" border='0' cellpadding=0 cellspacing = 0 >
<TR>
<td scope="row" align='right'>{$MOD.LBL_NAME}:<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td><td >
<input id='name' name='name' type='text' value='{$ROLE.name}'>
</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr>
<td scope="row" align='right'>{$MOD.LBL_DESCRIPTION}:</td>
<td ><textarea name='description' cols="80" rows="8">{$ROLE.description}</textarea></td>
</tr>
</table>
</form>
<script type="text/javascript">
addToValidate('EditView', 'name', 'varchar', true, '{$MOD.LBL_NAME}');
</script>

View 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".
********************************************************************************/
*}
<script src="modules/ACLRoles/ACLRoles.js"></script>
<b>{$MOD.LBL_EDIT_VIEW_DIRECTIONS}</b>
<table width='100%'><tr>
<td width= '100%' valign='top'>
<div id='category_data'>
{include file='modules/ACLRoles/EditAllBody.tpl'}
</div>
</td></tr>
</table>

76
modules/ACLRoles/popup.tpl Executable file
View File

@@ -0,0 +1,76 @@
<!--
/*********************************************************************************
* 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="include/JSON.js"></script>
<script type="text/javascript" src="include/javascript/popup_helper.js"></script>
<script type="text/javascript">
<!--
/* initialize the popup request from the parent */
{literal}
{/literal}
-->
</script>
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
<tr height="20">
<td scope="col" width="1%" >{$CHECKALL}&nbsp;</td>
<td scope="col" width="20%" nowrap><slot>{$MOD.LBL_NAME}</slot></td>
<td scope="col" width="10%" nowrap><slot>{$MOD.LBL_DESCRIPTION}</slot></td>
</tr>
{foreach from=$ROLES item="ROLE"}
<tr height="20" >
<td>{$PREROW}&nbsp;</td>
<td valign=TOP ><slot><a href="#" onclick="send_back('Users','{$ROLE.id}');">{$ROLE.name}</a></slot></td>
<td valign=TOP ><slot>{$ROLE.description}</slot></td>
</tr>
{foreachelse}
<tr>
<td colspan="2">No Roles</td>
</tr>
{/foreach}
</table>
{$ASSOCIATED_JAVASCRIPT_DATA}

View 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>

View 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}

View 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>

View File

@@ -0,0 +1,3 @@
{foreach from=$TELEPHONES_LIST key=k item=v}
<li><a href="{$v.telephone}">{$v.telephone}</a></li>
{/foreach}

View 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&amp;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&amp;themeName=Sugar5&amp;imageName=id-ff-remove.png"></a></td></tr>
</table>

View File

@@ -0,0 +1,3 @@
{foreach from=$WEBSITES_LIST key=k item=v}
<li><a href="{$v.www}">{$v.www}</a></li>
{/foreach}

View 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&amp;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&amp;themeName=Sugar5&amp;imageName=id-ff-remove.png"></a></td></tr>
</table>

View 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>

View File

@@ -0,0 +1,169 @@
{*
/*********************************************************************************
* 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="include/javascript/sugar_grp_yui_widgets.js"></script>
<link rel="stylesheet" type="text/css" href="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan='100'><h2>{$title}</h2></td></tr>
<tr><td colspan='100'>
{$description}
</td></tr><tr><td><br></td></tr><tr><td colspan='100'>
<form name="ConfigureSubPanels" method="POST">
<input type="hidden" name="module" value="Administration">
<input type="hidden" name="action" value="ConfigureSubPanels">
<input type="hidden" name="disabled_panels" value="">
<input type="hidden" name="enabled_panels" value="">
<input type="hidden" name="Save_or_Cancel" value="save">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary" onclick="SUGAR.saveSubpanelSettings();" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ConfigureSubPanels.action.value='';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td>
</tr>
</table>
<div class='add_table' style='margin-bottom:5px'>
<table id="ConfigureSubPanels" class="themeSettings edit view" style='margin-bottom:0px;' border="0" cellspacing="0" cellpadding="0">
<tr>
<td width='1%'>
<div id="enabled_div"></div>
</td>
<td>
<div id="disabled_div"></div>
</td>
</tr>
</table>
</div>
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary" onclick="SUGAR.saveSubpanelSettings();" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ConfigureSubPanels.action.value='';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td>
</tr>
</table>
</form>
<script type="text/javascript">
(function(){ldelim}
var Connect = YAHOO.util.Connect;
Connect.url = 'index.php';
Connect.method = 'POST';
Connect.timeout = 300000;
var enabled_modules = {$enabled_panels};
var disabled_modules = {$disabled_panels};
var lblEnabled = '{sugar_translate label="LBL_VISIBLE_PANELS"}';
var lblDisabled = '{sugar_translate label="LBL_HIDDEN_PANELS"}';
{literal}
SUGAR.subEnabledTable = new YAHOO.SUGAR.DragDropTable(
"enabled_div",
[{key:"label", label: lblEnabled, width: 200, sortable: false},
{key:"module", label: lblEnabled, hidden:true}],
new YAHOO.util.LocalDataSource(enabled_modules, {
responseSchema: {
fields : [{key : "module"}, {key : "label"}]
}
}),
{height: "300px"}
);
SUGAR.subDisabledTable = new YAHOO.SUGAR.DragDropTable(
"disabled_div",
[{key:"label", label: lblDisabled, width: 200, sortable: false},
{key:"module", label: lblDisabled, hidden:true}],
new YAHOO.util.LocalDataSource(disabled_modules, {
responseSchema: {
fields : [{key : "module"}, {key : "label"}]
}
}),
{height: "300px"}
);
SUGAR.subEnabledTable.disableEmptyRows = true;
SUGAR.subDisabledTable.disableEmptyRows = true;
SUGAR.subEnabledTable.addRow({module: "", label: ""});
SUGAR.subDisabledTable.addRow({module: "", label: ""});
SUGAR.subEnabledTable.render();
SUGAR.subDisabledTable.render();
SUGAR.saveSubpanelSettings = function()
{
var disabledTable = SUGAR.subDisabledTable;
var panels = "";
for(var i=0; i < disabledTable.getRecordSet().getLength(); i++){
var data = disabledTable.getRecord(i).getData();
if (data.module && data.module != '')
panels += "," + data.module;
}
panels = panels == "" ? panels : panels.substr(1);
ajaxStatus.showStatus(SUGAR.language.get('Administration', 'LBL_SAVING'));
Connect.asyncRequest(
Connect.method,
Connect.url,
{success: SUGAR.saveCallBack},
SUGAR.util.paramsToUrl({
module: "Administration",
action: "ConfigureSubPanels",
Save_or_Cancel:'save',
disabled_panels: panels
}) + "to_pdf=1"
);
return true;
}
SUGAR.saveCallBack = function(o)
{
ajaxStatus.flashStatus(SUGAR.language.get('app_strings', 'LBL_DONE'));
if (o.responseText == "true")
{
window.location.assign('index.php?module=Administration&action=ConfigureSubPanels');
}
else
{
YAHOO.SUGAR.MessageBox.show({msg:o.responseText});
}
}
})();
{/literal}
</script>

View 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".
********************************************************************************/
*}
<link rel="stylesheet" type="text/css" href="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
<script type="text/javascript" src="include/javascript/sugar_grp_yui_widgets.js"></script>
<style>.yui-dt-scrollable .yui-dt-bd {ldelim}overflow-x: hidden;{rdelim}</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan='100'><h2>{$title}</h2></td></tr>
<tr><td colspan='100'>
{$description}
</td></tr><tr><td><br></td></tr><tr><td colspan='100'>
<form name="ConfigureTabs" method="POST" method="POST" action="index.php">
<input type="hidden" name="module" value="Administration">
<input type="hidden" name="action" value="SaveTabs">
<input type="hidden" id="enabled_tabs" name="enabled_tabs" value="">
<input type="hidden" name="disabled_tabs" value="">
<input type="hidden" name="return_module" value="{$RETURN_MODULE}">
<input type="hidden" name="return_action" value="{$RETURN_ACTION}">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.saveConfigureTabs();this.form.action.value='SaveTabs'; " type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" >
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{$RETURN_ACTION}'; this.form.module.value='{$RETURN_MODULE}';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td>
</tr>
</table>
<input type='checkbox' name='user_edit_tabs' value=1 class='checkbox' {if !empty($user_can_edit)}CHECKED{/if}>&nbsp;<b onclick='document.EditView.user_edit_tabs.checked= !document.EditView.user_edit_tabs.checked' style='cursor:default'>{$MOD.LBL_ALLOW_USER_TABS}</b>
<div class='add_table' style='margin-bottom:5px'>
<table id="ConfigureTabs" class="themeSettings edit view" style='margin-bottom:0px;' border="0" cellspacing="0" cellpadding="0">
<tr>
<td width='1%'>
<div id="enabled_div" class="enabled_tab_workarea">
</div>
</td>
<td>
<div id="disabled_div" class="disabled_tab_workarea">
</div>
</td>
</tr>
</table>
</div>
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.saveConfigureTabs();this.form.action.value='SaveTabs'; " type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" >
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{$RETURN_ACTION}'; this.form.module.value='{$RETURN_MODULE}';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td>
</tr>
</table>
</form>
<script type="text/javascript">
(function(){ldelim}
var enabled_modules = {$enabled_tabs};
var disabled_modules = {$disabled_tabs};
var lblEnabled = '{sugar_translate label="LBL_VISIBLE_TABS"}';
var lblDisabled = '{sugar_translate label="LBL_HIDDEN_TABS"}';
{literal}
SUGAR.enabledTabsTable = new YAHOO.SUGAR.DragDropTable(
"enabled_div",
[{key:"label", label: lblEnabled, width: 200, sortable: false},
{key:"module", label: lblEnabled, hidden:true}],
new YAHOO.util.LocalDataSource(enabled_modules, {
responseSchema: {
resultsList : "modules",
fields : [{key : "module"}, {key : "label"}]
}
}),
{height: "300px"}
);
SUGAR.disabledTabsTable = new YAHOO.SUGAR.DragDropTable(
"disabled_div",
[{key:"label", label: lblDisabled, width: 200, sortable: false},
{key:"module", label: lblDisabled, hidden:true}],
new YAHOO.util.LocalDataSource(disabled_modules, {
responseSchema: {
resultsList : "modules",
fields : [{key : "module"}, {key : "label"}]
}
}),
{height: "300px"}
);
SUGAR.enabledTabsTable.disableEmptyRows = true;
SUGAR.disabledTabsTable.disableEmptyRows = true;
SUGAR.enabledTabsTable.addRow({module: "", label: ""});
SUGAR.disabledTabsTable.addRow({module: "", label: ""});
SUGAR.enabledTabsTable.render();
SUGAR.disabledTabsTable.render();
SUGAR.saveConfigureTabs = function()
{
var enabledTable = SUGAR.enabledTabsTable;
var modules = [];
for(var i=0; i < enabledTable.getRecordSet().getLength(); i++){
var data = enabledTable.getRecord(i).getData();
if (data.module && data.module != '')
modules[i] = data.module;
}
YAHOO.util.Dom.get('enabled_tabs').value = YAHOO.lang.JSON.stringify(modules);
}
})();
{/literal}
</script>

216
modules/Administration/Locale.tpl Executable file
View File

@@ -0,0 +1,216 @@
{*
/*********************************************************************************
* 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">
var ERR_NO_SINGLE_QUOTE = '{$APP.ERR_NO_SINGLE_QUOTE}';
var cannotEq = "{$APP.ERR_DECIMAL_SEP_EQ_THOUSANDS_SEP}";
{literal}
function verify_data(formName) {
var f = document.getElementById(formName);
for(i=0; i<f.elements.length; i++) {
if(f.elements[i].value == "'") {
alert(ERR_NO_SINGLE_QUOTE + " " + f.elements[i].name);
return false;
}
}
// currency syntax
if (document.ConfigureSettings.default_number_grouping_seperator.value == document.ConfigureSettings.default_decimal_seperator.value) {
alert(cannotEq);
return false;
}
return true;
}
</script>
{/literal}
<BR>
<form id="ConfigureSettings" name="ConfigureSettings" enctype='multipart/form-data' method="POST"
action="index.php?module=Administration&action=Locale&process=true">
<span class='error'>{$error.main}</span>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="actionsContainer">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}"
accessKey="{$APP.LBL_SAVE_BUTTON_KEY}"
class="button primary"
type="submit"
name="save"
onclick="return verify_data('ConfigureSettings');"
value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Administration&action=index'" class="button" type="button" name="cancel" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " > </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr><th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_LOCALE_DEFAULT_SYSTEM_SETTINGS}</h4></th>
</tr>
<tr>
<td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_DATE_FORMAT}: </td>
<td >
{html_options name='default_date_format' selected=$config.default_date_format options=$config.date_formats}
</td>
<td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_TIME_FORMAT}: </td>
<td >
{html_options name='default_time_format' selected=$config.default_time_format options=$config.time_formats}
</td>
</tr><tr>
<td scope="row">{$MOD.LBL_LOCALE_DEFAULT_LANGUAGE}: </td>
<td >
{html_options name='default_language' selected=$config.default_language options=$LANGUAGES}
</td>
</tr>
</tr><tr>
<td scope="row" valign="top">{$MOD.LBL_LOCALE_DEFAULT_NAME_FORMAT}: </td>
<td >
<input onkeyup="setPreview();" onkeydown="setPreview();" id="default_locale_name_format" type="text" name="default_locale_name_format" value="{$config.default_locale_name_format}">
<br>
{$MOD.LBL_LOCALE_NAME_FORMAT_DESC}
</td>
<td scope="row" valign="top">{$MOD.LBL_LOCALE_EXAMPLE_NAME_FORMAT}: </td>
<td valign="top"><input name="no_value" id="nameTarget" value="" style="border: none;" disabled></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_LOCALE_DEFAULT_CURRENCY}</h4></th>
</tr><tr>
<td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_NAME}: </td>
<td >
<input type='text' size='25' name='default_currency_name' value='{$config.default_currency_name}' >
</td>
<td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_SYMBOL}: </td>
<td >
<input type='text' size='4' name='default_currency_symbol' value='{$config.default_currency_symbol}' >
</td>
</tr><tr>
<td scope="row" width="200">{$MOD.LBL_LOCALE_DEFAULT_CURRENCY_ISO4217}: </td>
<td >
<input type='text' size='4' name='default_currency_iso4217' value='{$config.default_currency_iso4217}'>
</td>
<td scope="row">{$MOD.LBL_LOCALE_DEFAULT_NUMBER_GROUPING_SEP}: </td>
<td >
<input type='text' size='3' maxlength='1' name='default_number_grouping_seperator' value='{$config.default_number_grouping_seperator}'>
</td>
</tr><tr>
<td scope="row">{$MOD.LBL_LOCALE_DEFAULT_DECIMAL_SEP}: </td>
<td >
<input type='text' size='3' maxlength='1' name='default_decimal_seperator' value='{$config.default_decimal_seperator}'>
</td>
<td scope="row"></td>
<td ></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr><th align="left" scope="row" colspan="4"><h4>{$MOD.EXPORT}</h4></th>
</tr><tr>
<td nowrap width="10%" scope="row">{$MOD.EXPORT_DELIMITER}: </td>
<td width="25%" >
<input type='text' name='export_delimiter' size="5" value='{$config.export_delimiter}'>
</td>
<td nowrap width="10%" scope="row">{$MOD.EXPORT_CHARSET}: </td>
<td width="25%" >
<select name="default_export_charset">{$exportCharsets}</select>
</td>
<td nowrap width="10%" scope="row">{$MOD.DISABLE_EXPORT}: </td>
{if !empty($config.disable_export)}
{assign var='disable_export_checked' value='CHECKED'}
{else}
{assign var='disable_export_checked' value=''}
{/if}
<td width="25%" ><input type='hidden' name='disable_export' value='false'><input name='disable_export' type="checkbox" value="true" {$disable_export_checked}></td>
<td nowrap width="10%" scope="row">{$MOD.ADMIN_EXPORT_ONLY}: </td>
{if !empty($config.admin_export_only)}
{assign var='admin_export_only_checked' value='CHECKED'}
{else}
{assign var='admin_export_only_checked' value=''}
{/if}
<td width="20%" ><input type='hidden' name='admin_export_only' value='false'><input name='admin_export_only' type="checkbox" value="true" {$admin_export_only_checked}></td>
</tr>
</table>
{if $dbType == 'mysql'}
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="2">
<h4>
{$MOD.LBL_LOCALE_DB_COLLATION_TITLE}
</h4>
</th>
</tr>
<tr>
<td scope="row" width="200">
{$MOD.LBL_LOCALE_DB_COLLATION}
</td>
<td scope="row">
<select name="collation" id="collation">{$collationOptions}</select>
</td>
</tr>
</table>
{/if}
<div style="padding-top: 2px;">
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary" type="submit" name="save" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " />
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Administration&action=index'" class="button" type="button" name="cancel" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " />
</div>
{$JAVASCRIPT}
</form>
<script language="Javascript" type="text/javascript">
{$getNameJs}
</script>

View File

@@ -0,0 +1,635 @@
{*
/*********************************************************************************
* 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='include/javascript/overlibmws.js'></script>
<form name="ConfigurePasswordSettings" method="POST" action="index.php" >
<input type='hidden' name='action' value='PasswordManager'/>
<input type='hidden' name='module' value='Administration'/>
<input type='hidden' name='saveConfig' value='1'/>
<span class='error'>{$error.main}</span>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="actionsContainer">
<tr>
<td style="padding-bottom: 2px;" >
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" id="btn_save" type="submit" onclick="addcheck(form);return check_form('ConfigurePasswordSettings');" name="save" value="{$APP.LBL_SAVE_BUTTON_LABEL}" >
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Administration&action=index'" class="button" type="button" name="cancel" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" >
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table id="sysGeneratedId" name="sysGeneratedName" width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4">
<h4>
{$MOD.LBL_PASSWORD_SYST_GENERATED_TITLE}
</h4>
</th>
</tr>
<tr>
<td scope="row" width='25%'>
{$MOD.LBL_PASSWORD_SYST_GENERATED_PWD_ON}:&nbsp{sugar_help text=$MOD.LBL_PASSWORD_SYST_GENERATED_PWD_HELP WIDTH=400}
</td>
<td >
{if ($config.passwordsetting.SystemGeneratedPasswordON ) == '1'}
{assign var='SystemGeneratedPasswordON' value='CHECKED'}
{else}
{assign var='SystemGeneratedPasswordON' value=''}
{/if}
<input type='hidden' name='passwordsetting_SystemGeneratedPasswordON' value='0'>
<input name='passwordsetting_SystemGeneratedPasswordON' id='SystemGeneratedPassword_checkbox' type='checkbox' value='1' {$SystemGeneratedPasswordON} onclick='enable_syst_generated_pwd(this);toggleDisplay("SystemGeneratedPassword_warning");'>
</td>
{if !($config.passwordsetting.SystemGeneratedPasswordON)}
{assign var='smtp_warning' value='none'}
{/if}
</tr>
<tr>
<td colspan="2" id='SystemGeneratedPassword_warning'scope="row" style='display:{$smtp_warning}';>
<i>{if $SMTP_SERVER_NOT_SET}&nbsp;&nbsp;&nbsp;&nbsp;{$MOD.ERR_SMTP_SERVER_NOT_SET}<br>{/if}
&nbsp;&nbsp;&nbsp;&nbsp;{$MOD.LBL_EMAIL_ADDRESS_REQUIRED_FOR_FEATURE}</i>
</td>
</tr>
<tr>
<td align="left" scope="row" colspan="4">
{$MOD.LBL_PASSWORD_SYST_EXPIRATION}
</td>
</tr>
<tr>
<td colspan='4'>
<table width="100%" id='syst_generated_pwd_table' border="0" cellspacing="1" cellpadding="0">
<tr>
{assign var='systexplogin' value=''}
{assign var='systexptime' value=''}
{assign var='systexpnone' value=''}
{if ($config.passwordsetting.systexpiration) == '0' || $config.passwordsetting.systexpiration==''}
{assign var='systexpnone' value='CHECKED'}
{/if}
{if ($config.passwordsetting.systexpiration) == '1'}
{assign var='systexptime' value='CHECKED'}
{/if}
{if ($config.passwordsetting.systexpiration) == '2'}
{assign var='systexplogin' value='CHECKED'}
{/if}
<td width='30%'>
<input type="radio" name="passwordsetting_systexpiration" value='0' {$systexpnone} onclick="form.passwordsetting_systexpirationtime.value='';form.passwordsetting_systexpirationlogin.value='';">
{$MOD.LBL_UW_NONE}
</td>
<td width='30%'>
<input type="radio" name="passwordsetting_systexpiration" id="required_sys_pwd_exp_time" value='1' {$systexptime} onclick="form.passwordsetting_systexpirationlogin.value='';">
{$MOD.LBL_PASSWORD_EXP_IN}
{assign var='sdays' value=''}
{assign var='sweeks' value=''}
{assign var='smonths' value=''}
{if ($config.passwordsetting.systexpirationtype ) == '1'}
{assign var='sdays' value='SELECTED'}
{/if}
{if ($config.passwordsetting.systexpirationtype ) == '7'}
{assign var='sweeks' value='SELECTED'}
{/if}
{if ($config.passwordsetting.systexpirationtype ) == '30'}
{assign var='smonths' value='SELECTED'}
{/if}
<input type='text' maxlength="3" and style="width:2em" name='passwordsetting_systexpirationtime' value='{$config.passwordsetting.systexpirationtime}'>
<SELECT NAME="passwordsetting_systexpirationtype">
<OPTION VALUE='1' {$sdays}>{$MOD.LBL_DAYS}
<OPTION VALUE='7' {$sweeks}>{$MOD.LBL_WEEKS}
<OPTION VALUE='30' {$smonths}>{$MOD.LBL_MONTHS}
</SELECT>
</td>
<td colspan='2' width='40%'>
<input type="radio" name="passwordsetting_systexpiration" id="required_sys_pwd_exp_login" value='2' {$systexplogin} onclick="form.passwordsetting_systexpirationtime.value='';">
{$MOD.LBL_PASSWORD_EXP_AFTER}
<input type='text' maxlength="3" and style="width:2em" name='passwordsetting_systexpirationlogin' value="{$config.passwordsetting.systexpirationlogin}">
{$MOD.LBL_PASSWORD_LOGINS}
</td>
</tr>
</table>
</td>
</tr>
</table>
<table id="userResetPassId" name="userResetPassName" width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="2"><h4>{$MOD.LBL_PASSWORD_USER_RESET}</h4>
</th>
</tr>
<tr>
<td width="25%" scope="row">{$MOD.LBL_PASSWORD_FORGOT_FEATURE}:&nbsp{sugar_help text=$MOD.LBL_PASSWORD_FORGOT_FEATURE_HELP WIDTH=400}</td>
<td scope="row" width="25%" >
{if ($config.passwordsetting.forgotpasswordON ) == '1'}
{assign var='forgotpasswordON' value='CHECKED'}
{else}
{assign var='forgotpasswordON' value=''}
{/if}
<input type='hidden' name='passwordsetting_forgotpasswordON' value='0'>
<input name="passwordsetting_forgotpasswordON" id="forgotpassword_checkbox" value="1" class="checkbox" type="checkbox" onclick='forgot_password_enable(this); toggleDisplay("SystemGeneratedPassword_warning2");' {$forgotpasswordON}>
</td>
{if !($config.passwordsetting.forgotpasswordON)}
{assign var='smtp_warning_2' value='none'}
{/if}
</tr>
<tr><td colspan="4" id='SystemGeneratedPassword_warning2'scope="row" style='display:{$smtp_warning_2}';>
<i>{if $SMTP_SERVER_NOT_SET}&nbsp;&nbsp;&nbsp;&nbsp;{$MOD.ERR_SMTP_SERVER_NOT_SET}<br>{/if}
&nbsp;&nbsp;&nbsp;&nbsp;{$MOD.LBL_EMAIL_ADDRESS_REQUIRED_FOR_FEATURE}</i>
</td>
</tr>
<tr>
<td width="25%" scope="row">{$MOD.LBL_PASSWORD_LINK_EXPIRATION}:&nbsp{sugar_help text=$MOD.LBL_PASSWORD_LINK_EXPIRATION_HELP WIDTH=400}</td>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="forgot_password_table">
<tr>
{assign var='linkexptime' value=''}
{assign var='linkexpnone' value=''}
{if ($config.passwordsetting.linkexpiration) == '0'}
{assign var='linkexpnone' value='CHECKED'}
{/if}
{if ($config.passwordsetting.linkexpiration) == '1'}
{assign var='linkexptime' value='CHECKED'}
{/if}
<td width='30%'>
<input type="radio" name="passwordsetting_linkexpiration" value='0' {$linkexpnone} onclick="form.passwordsetting_linkexpirationtime.value='';">
{$MOD.LBL_UW_NONE}
</td>
<td width='30%'>
<input type="radio" name="passwordsetting_linkexpiration" id="required_link_exp_time" value='1' {$linkexptime}>
{$MOD.LBL_PASSWORD_LINK_EXP_IN}
{assign var='ldays' value=''}
{assign var='lweeks' value=''}
{assign var='lmonths' value=''}
{if ($config.passwordsetting.linkexpirationtype ) == '1'}
{assign var='ldays' value='SELECTED'}
{/if}
{if ($config.passwordsetting.linkexpirationtype ) == '60'}
{assign var='lweeks' value='SELECTED'}
{/if}
{if ($config.passwordsetting.linkexpirationtype ) == '1440'}
{assign var='lmonths' value='SELECTED'}
{/if}
<input type='text' maxlength="3" and style="width:2em" name='passwordsetting_linkexpirationtime' value='{$config.passwordsetting.linkexpirationtime}'>
<SELECT NAME="passwordsetting_linkexpirationtype">
<OPTION VALUE='1' {$ldays}>{$MOD.LBL_MINUTES}
<OPTION VALUE='60' {$lweeks}>{$MOD.LBL_HOURS}
<OPTION VALUE='1440' {$lmonths}>{$MOD.LBL_DAYS}
</SELECT>
</td width='40%'>
<td >
</td>
</tr>
</table>
</td>
</tr>
<tr>
{if !empty($settings.captcha_on) || !($VALID_PUBLIC_KEY)}
{assign var='captcha_checked' value='CHECKED'}
{else}
{assign var='captcha_checked' value=''}
{/if}
<td width="25%" scope="row">{$MOD.ENABLE_CAPTCHA}:&nbsp{sugar_help text=$MOD.LBL_CAPTCHA_HELP_TEXT WIDTH=400}</td>
<td scope="row" width="75%"><input type='hidden' name='captcha_on' value='0'><input name="captcha_on" id="captcha_id" value="1" class="checkbox" tabindex='1' type="checkbox" onclick='document.getElementById("captcha_config_display").style.display=this.checked?"":"none";' {$captcha_checked}></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4">
<div id="captcha_config_display" style="display:{$CAPTCHA_CONFIG_DISPLAY}">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" scope="row">{$MOD.LBL_PUBLIC_KEY}<span class="required">*</span></td>
<td width="40%" ><input type="text" name="captcha_public_key" id="captcha_public_key" size="45" value="{$settings.captcha_public_key}" tabindex='1' onblur="this.value=this.value.replace(/^\s+/,'').replace(/\s+$/,'')"></td>
<td width="10%" scope="row">{$MOD.LBL_PRIVATE_KEY}<span class="required">*</span></td>
<td width="40%" ><input type="text" name="captcha_private_key" size="45" value="{$settings.captcha_private_key}" tabindex='1' onblur="this.value=this.value.replace(/^\s+/,'').replace(/\s+$/,'')"></td>
</tr>
</table>
</div>
</td>
</tr>
{if !($VALID_PUBLIC_KEY)}
<tr><td scope="row"><span class='error'>{$MOD.ERR_PUBLIC_CAPTCHA_KEY}</span></td></tr>
{/if}
</table>
<table id="emailTemplatesId" name="emailTemplatesName" width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4">
<h4>
{$MOD.LBL_PASSWORD_TEMPLATE}
</h4>
</th>
</tr>
<tr>
<td scope="row" width="35%">{$MOD.LBL_PASSWORD_GENERATE_TEMPLATE_MSG}: </td>
<td >
<slot>
<select tabindex='251' id="generatepasswordtmpl" name="passwordsetting_generatepasswordtmpl" {$IE_DISABLED}>{$TMPL_DRPDWN_GENERATE}</select>
<input type="button" class="button" onclick="javascript:open_email_template_form('generatepasswordtmpl')" value="{$MOD.LBL_PASSWORD_CREATE_TEMPLATE}" {$IE_DISABLED}>
<input type="button" value="{$MOD.LBL_PASSWORD_EDIT_TEMPLATE}" class="button" onclick="javascript:edit_email_template_form('generatepasswordtmpl')" name='edit_generatepasswordtmpl' id='edit_generatepasswordtmpl' style="{$EDIT_TEMPLATE}">
</slot>
</td>
<td ></td>
<td ></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_PASSWORD_LOST_TEMPLATE_MSG}: </td>
<td >
<slot>
<select tabindex='251' id="lostpasswordtmpl" name="passwordsetting_lostpasswordtmpl" {$IE_DISABLED}>{$TMPL_DRPDWN_LOST}</select>
<input type="button" class="button" onclick="javascript:open_email_template_form('lostpasswordtmpl')" value="{$MOD.LBL_PASSWORD_CREATE_TEMPLATE}" {$IE_DISABLED}>
<input type="button" value="{$MOD.LBL_PASSWORD_EDIT_TEMPLATE}" class="button" onclick="javascript:edit_email_template_form('lostpasswordtmpl')" name='edit_lostpasswordtmpl' id='edit_lostpasswordtmpl' style="{$EDIT_TEMPLATE}">
</slot>
</td>
<td ></td>
<td ></td>
</tr>
</table>
{if !empty($settings.system_ldap_enabled)}
{assign var='system_ldap_enabled_checked' value='CHECKED'}
{assign var='ldap_display' value='inline'}
{else}
{assign var='system_ldap_enabled_checked' value=''}
{assign var='ldap_display' value='none'}
{/if}
<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='3'><h4>{$MOD.LBL_LDAP_TITLE}</h4></th>
</tr>
<tr>
<td width="25%" scope="row" valign='middle'>
{$MOD.LBL_LDAP_ENABLE}{sugar_help text=$MOD.LBL_LDAP_HELP_TXT}
</td><td valign='middle'><input name="system_ldap_enabled" id="system_ldap_enabled" class="checkbox" type="checkbox" {$system_ldap_enabled_checked} onclick='toggleDisplay("ldap_display");enableDisablePasswordTable();'></td><td>&nbsp;</td><td>&nbsp;</td></tr>
<tr>
<td colspan='4'>
<table cellspacing='0' cellpadding='1' id='ldap_display' style='display:{$ldap_display}' width='100%'>
<tr>
<td width='25%' scope="row" valign='top' nowrap>{$MOD.LBL_LDAP_SERVER_HOSTNAME} {sugar_help text=$MOD.LBL_LDAP_SERVER_HOSTNAME_DESC}</td>{$settings.proxy_host}
<td width='25%' align="left" valign='top'><input name="ldap_hostname" size='25' type="text" value="{$settings.ldap_hostname}"></td>
<td width='25%' scope="row" valign='top' nowrap>{$MOD.LBL_LDAP_SERVER_PORT} {sugar_help text=$MOD.LBL_LDAP_SERVER_PORT_DESC}</td>{$settings.proxy_port}
<td width='25%' align="left" valign='top' ><input name="ldap_port" size='6' type="text" value="{$settings.ldap_port}"></td>
</tr>
<tr>
<td scope="row" valign='middle' nowrap>{$MOD.LBL_LDAP_USER_DN} {sugar_help text=$MOD.LBL_LDAP_USER_DN_DESC}</td>
<td align="left" valign='middle'><input name="ldap_base_dn" size='35' type="text" value="{$settings.ldap_base_dn}"></td>
<td scope="row" valign='middle' nowrap>{$MOD.LBL_LDAP_USER_FILTER} {sugar_help text=$MOD.LBL_LDAP_USER_FILTER_DESC}</td>
<td align="left" valign='middle'><input name="ldap_login_filter" size='25' type="text" value="{$settings.ldap_login_filter}"></td>
</tr>
<tr>
<td scope="row" valign='top' nowrap>{$MOD.LBL_LDAP_BIND_ATTRIBUTE} {sugar_help text=$MOD.LBL_LDAP_BIND_ATTRIBUTE_DESC}</td>
<td align="left" valign='top'><input name="ldap_bind_attr" size='25' type="text" value="{$settings.ldap_bind_attr}"> </td>
<td scope="row" valign='middle' nowrap>{$MOD.LBL_LDAP_LOGIN_ATTRIBUTE} {sugar_help text=$MOD.LBL_LDAP_LOGIN_ATTRIBUTE_DESC}</td>
<td align="left" valign='middle'><input name="ldap_login_attr" size='25' type="text" value="{$settings.ldap_login_attr}"></td>
</tr>
<tr>
<td scope="row" valign='top'nowrap>{$MOD.LBL_LDAP_GROUP_MEMBERSHIP} {sugar_help text=$MOD.LBL_LDAP_GROUP_MEMBERSHIP_DESC}</td>
<td align="left" valign='top'>
{if !empty($settings.ldap_group)}
{assign var='ldap_group_checked' value='CHECKED'}
{assign var='ldap_group_display' value=''}
{else}
{assign var='ldap_group_checked' value=''}
{assign var='ldap_group_display' value='none'}
{/if}
<input name="ldap_group_checkbox" class="checkbox" type="checkbox" {$ldap_group_checked} onclick='toggleDisplay("ldap_group")'>
</td>
<td valign='middle' nowrap></td>
<td align="left" valign='middle'></td>
</tr>
<tr>
<td></td>
<td colspan='3'>
<span id='ldap_group' style='display:{$ldap_group_display}'>
<table width='100%'>
<tr>
<td width='25%' scope="row" valign='top'nowrap>{$MOD.LBL_LDAP_GROUP_DN} {sugar_help text=$MOD.LBL_LDAP_GROUP_DN_DESC}</td>
<td width='25%' align="left" valign='top'><input name="ldap_group_dn" size='20' type="text" value="{$settings.ldap_group_dn}"></td>
<td width='25%' scope="row" valign='top'nowrap>{$MOD.LBL_LDAP_GROUP_NAME} {sugar_help text=$MOD.LBL_LDAP_GROUP_NAME_DESC}</td>
<td width='25%' align="left" valign='top'><input name="ldap_group_name" size='20' type="text" value="{$settings.ldap_group_name}"></td>
</tr>
<tr>
<td scope="row" valign='top' nowrap>{$MOD.LBL_LDAP_GROUP_USER_ATTR} {sugar_help text=$MOD.LBL_LDAP_GROUP_USER_ATTR_DESC}</td>
<td align="left" valign='top'><input name="ldap_group_user_attr" size='20' type="text" value="{$settings.ldap_group_user_attr}"> </td>
<td scope="row" valign='top' nowrap>{$MOD.LBL_LDAP_GROUP_ATTR} {sugar_help text=$MOD.LBL_LDAP_GROUP_ATTR_DESC}</td>
<td align="left" valign='top'><input name="ldap_group_attr" size='20' type="text" value="{$settings.ldap_group_attr}"> </td>
</tr>
</table>
<br>
</span>
</td>
</tr>
<tr>
<td scope="row" valign='top'nowrap>{$MOD.LBL_LDAP_AUTHENTICATION} {sugar_help text=$MOD.LBL_LDAP_AUTHENTICATION_DESC}</td>
<td align="left" valign='top' >
{if !empty($settings.ldap_authentication)}
{assign var='ldap_authentication_checked' value='CHECKED'}
{assign var='ldap_authentication_display' value=''}
{else}
{assign var='ldap_authentication_checked' value=''}
{assign var='ldap_authentication_display' value='none'}
{/if}
<input name="ldap_authentication_checkbox" class="checkbox" type="checkbox" {$ldap_authentication_checked} onclick='toggleDisplay("ldap_authentication")'>
</td>
<td valign='middle' nowrap></td>
<td align="left" valign='middle'></td>
</tr>
<tr>
<td></td>
<td colspan='3'>
<span id='ldap_authentication' style='display:{$ldap_authentication_display}'>
<table width='100%' >
<tr>
<td width='25%' scope="row" valign='top'nowrap>{$MOD.LBL_LDAP_ADMIN_USER} {sugar_help text=$MOD.LBL_LDAP_ADMIN_USER_DESC}</td>
<td width='25%' align="left" valign='top'><input name="ldap_admin_user" size='20' type="text" value="{$settings.ldap_admin_user}"></td>
<td width='25%' scope="row" valign='middle' nowrap>{$MOD.LBL_LDAP_ADMIN_PASSWORD}</td>
<td width='25%' align="left" valign='middle'><input name="ldap_admin_password" size='20' type="password" value="{$settings.ldap_admin_password}"> </td>
</tr>
</table>
<br>
</span>
</td>
</tr>
<tr>
<td scope="row" valign='top' nowrap>{$MOD.LBL_LDAP_AUTO_CREATE_USERS} {sugar_help text=$MOD.LBL_LDAP_AUTO_CREATE_USERS_DESC}</td>
{if !empty($settings.ldap_auto_create_users)}
{assign var='ldap_auto_create_users_checked' value='CHECKED'}
{else}
{assign var='ldap_auto_create_users_checked' value=''}
{/if}
<td align="left" valign='top'><input type='hidden' name='ldap_auto_create_users' value='0'><input name="ldap_auto_create_users" value="1" class="checkbox" type="checkbox" {$ldap_auto_create_users_checked}></td>
<td valign='middle' nowrap></td>
<td align="left" valign='middle'></td>
</tr>
<tr>
<td scope="row" valign='middle' nowrap>{$MOD.LBL_LDAP_ENC_KEY} {sugar_help text=$LDAP_ENC_KEY_DESC}</td>
<td align="left" valign='middle'><input name="ldap_enc_key" size='35' type="password" value="{$settings.ldap_enc_key}" {$LDAP_ENC_KEY_READONLY}> </td>
<td valign='middle' nowrap></td>
<td align="left" valign='middle'></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{if !empty($settings.system_ldap_enabled)}
{assign var='system_ldap_enabled_checked' value='CHECKED'}
{assign var='ldap_display' value='inline'}
{else}
{assign var='system_ldap_enabled_checked' value=''}
{assign var='ldap_display' value='none'}
{/if}
<div style="padding-top: 2px;">
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary" id="btn_save" type="submit" onclick="addcheck(form);return check_form('ConfigurePasswordSettings');" name="save" value="{$APP.LBL_SAVE_BUTTON_LABEL}" />
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Administration&action=index'" class="button" type="button" name="cancel" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" />
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{$JAVASCRIPT}
{if !($VALID_PUBLIC_KEY)}
<script>
document.getElementById('captcha_public_key').focus();
document.getElementById('captcha_id').checked=true;
document.getElementById('forgotpassword_checkbox').checked=true;
</script>
{/if}
{literal}
<script>
function addcheck(form){{/literal}
addForm('ConfigurePasswordSettings');
if(document.getElementById('forgotpassword_checkbox').checked){literal}{{/literal}
addToValidate('ConfigurePasswordSettings', 'passwordsetting_linkexpirationtime', 'int', form.required_link_exp_time.checked,"{$MOD.ERR_PASSWORD_LINK_EXPIRE_TIME} ");
{literal}}{/literal}
if(document.getElementById('SystemGeneratedPassword_checkbox').checked){literal}{{/literal}
addToValidate('ConfigurePasswordSettings', 'passwordsetting_systexpirationtime', 'int', form.required_sys_pwd_exp_time.checked,"{$MOD.ERR_PASSWORD_EXPIRE_TIME}" );
addToValidate('ConfigurePasswordSettings', 'passwordsetting_systexpirationlogin', 'int', form.required_sys_pwd_exp_login.checked,"{$MOD.ERR_PASSWORD_EXPIRE_LOGIN}" );
{literal}}{/literal}
{literal} }
function open_email_template_form(fieldToSet) {
fieldToSetValue = fieldToSet;
URL="index.php?module=EmailTemplates&action=EditView&inboundEmail=true&show_js=1";
windowName = 'email_template';
windowFeatures = 'width=800' + ',height=600' + ',resizable=1,scrollbars=1';
win = window.open(URL, windowName, windowFeatures);
if(window.focus)
{
// put the focus on the popup if the browser supports the focus() method
win.focus();
}
}
function enableDisablePasswordTable() {
var ldapEnabled = document.getElementById("system_ldap_enabled").checked;
if (ldapEnabled) {
document.getElementById("emailTemplatesId").style.display = "none";
document.getElementById("sysGeneratedId").style.display = "none";
document.getElementById("userResetPassId").style.display = "none";
} else {
document.getElementById("emailTemplatesId").style.display = "";
document.getElementById("sysGeneratedId").style.display = "";
document.getElementById("userResetPassId").style.display = "";
}
} // if
function edit_email_template_form(templateField) {
fieldToSetValue = templateField;
var field=document.getElementById(templateField);
URL="index.php?module=EmailTemplates&action=EditView&inboundEmail=true&show_js=1";
if (field.options[field.selectedIndex].value != 'undefined') {
URL+="&record="+field.options[field.selectedIndex].value;
}
windowName = 'email_template';
windowFeatures = 'width=800' + ',height=600' + ',resizable=1,scrollbars=1';
win = window.open(URL, windowName, windowFeatures);
if(window.focus)
{
// put the focus on the popup if the browser supports the focus() method
win.focus();
}
}
function refresh_email_template_list(template_id, template_name) {
var field=document.getElementById(fieldToSetValue);
var bfound=0;
for (var i=0; i < field.options.length; i++) {
if (field.options[i].value == template_id) {
if (field.options[i].selected==false) {
field.options[i].selected=true;
}
field.options[i].text = template_name;
bfound=1;
}
}
//add item to selection list.
if (bfound == 0) {
var newElement=document.createElement('option');
newElement.text=template_name;
newElement.value=template_id;
field.options.add(newElement);
newElement.selected=true;
}
//enable the edit button.
var editButtonName = 'edit_generatepasswordtmpl';
if (fieldToSetValue == 'generatepasswordtmpl') {
editButtonName = 'edit_lostpasswordtmpl';
} // if
var field1=document.getElementById(editButtonName);
field1.style.visibility="visible";
var applyListToTemplateField = 'generatepasswordtmpl';
if (fieldToSetValue == 'generatepasswordtmpl') {
applyListToTemplateField = 'lostpasswordtmpl';
} // if
var field=document.getElementById(applyListToTemplateField);
if (bfound == 1) {
for (var i=0; i < field.options.length; i++) {
if (field.options[i].value == template_id) {
field.options[i].text = template_name;
} // if
} // for
} else {
var newElement=document.createElement('option');
newElement.text=template_name;
newElement.value=template_id;
field.options.add(newElement);
} // else
-->
}
function testregex(customregex)
{
try
{
var string = 'hello';
string.match(customregex.value);
}
catch(err)
{
alert(SUGAR.language.get("Administration", "ERR_INCORRECT_REGEX"));
setTimeout("document.getElementById('customregex').select()",10);
}
}
function toggleDisplay_2(id){
if(this.document.getElementById(id).style.display=='none'){
this.document.getElementById(id).style.display='';
this.document.getElementById(id+"_lbl").innerHTML='{/literal}{$MOD.LBL_HIDE_ADVANCED_OPTIONS}{literal}';
this.document.getElementById("regex_config_display_img").src = '{/literal}{sugar_getimagepath file="basic_search.gif"}{literal}';
}else{
this.document.getElementById(id).style.display='none'
this.document.getElementById(id+"_lbl").innerHTML='{/literal}{$MOD.LBL_SHOW_ADVANCED_OPTIONS}{literal}';
this.document.getElementById("regex_config_display_img").src = '{/literal}{sugar_getimagepath file="advanced_search.gif"}{literal}';
}
}
function forgot_password_enable(check){
var table_fields=document.getElementById('forgot_password_table');
var forgot_password_input=table_fields.getElementsByTagName('input');
var forgot_password_select=table_fields.getElementsByTagName('select');
if(check.checked){
for (i=0;i<forgot_password_input.length;i++)
forgot_password_input[i].disabled='';
for (j=0;j<forgot_password_select.length;j++)
forgot_password_select[j].disabled='';
document.ConfigurePasswordSettings.captcha_on[1].disabled='';
}else
{
document.ConfigurePasswordSettings.captcha_on[1].disabled='disabled';
document.ConfigurePasswordSettings.captcha_on[1].checked='';
document.getElementById("captcha_config_display").style.display='none';
for (i=0;i<forgot_password_input.length;i++)
forgot_password_input[i].disabled='disabled';
for (j=0;j<forgot_password_select.length;j++)
forgot_password_select[j].disabled='disabled';
}
}
function enable_syst_generated_pwd(check){
var table_fields=document.getElementById('syst_generated_pwd_table');
var syst_generated_pwd_input=table_fields.getElementsByTagName('input');
var syst_generated_pwd_select=table_fields.getElementsByTagName('select');
if(check.checked){
for (i=0;i<syst_generated_pwd_input.length;i++)
syst_generated_pwd_input[i].disabled='';
for (j=0;j<syst_generated_pwd_select.length;j++)
syst_generated_pwd_select[j].disabled='';
}else
{
for (i=0;i<syst_generated_pwd_input.length;i++)
syst_generated_pwd_input[i].disabled='disabled';
for (j=0;j<syst_generated_pwd_select.length;j++)
syst_generated_pwd_select[j].disabled='disabled';
}
}
forgot_password_enable(document.getElementById('forgotpassword_checkbox'));
enable_syst_generated_pwd(document.getElementById('SystemGeneratedPassword_checkbox'));
enableDisablePasswordTable();
</script>
{/literal}

View 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 $helpFileExists}
<html>
<head>
<title>{$title}</title>
{$styleSheet}
<meta http-equiv="Content-Type" content="text/html; charset={$charset}">
</head>
<body onLoad='window.focus();'>
{$helpBar}
<table class='edit view'>
<tr>
<td>{include file="$helpPath"}</td>
</tr>
</table>
{$bookmarkScript}
</body>
</html>
{else}
<IFRAME frameborder="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF" SRC="{$iframeURL}" NAME="SUGARIFRAME" ID="SUGARIFRAME" WIDTH="100%" height="1000"></IFRAME>
{/if}

View 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".
********************************************************************************/
-->
*}
<div class="dashletPanelMenu">
<div class="hd"><div class="tl"></div><div class="hd-center"></div><div class="tr"></div></div>
<div class="bd">
<div class="ml"></div>
<div class="bd-center">
<div class="screen">
{*{$MY_FRAME}*}
{foreach from=$ADMIN_GROUP_HEADER key=j item=val1}
{if isset($GROUP_HEADER[$j][1])}
<p>{$GROUP_HEADER[$j][0]}{$GROUP_HEADER[$j][1]}
<table class="other view">
{else}
<p>{$GROUP_HEADER[$j][0]}{$GROUP_HEADER[$j][2]}
<table class="other view">
{/if}
{assign var='i' value=0}
{foreach from=$VALUES_3_TAB[$j] key=link_idx item=admin_option}
{if isset($COLNUM[$j][$i])}
<tr>
<td width="20%" scope="row">{$ITEM_HEADER_IMAGE[$j][$i]}&nbsp;<a href='{$ITEM_URL[$j][$i]}' class="tabDetailViewDL2Link">{$ITEM_HEADER_LABEL[$j][$i]}</a></td>
<td width="30%">{$ITEM_DESCRIPTION[$j][$i]}</td>
{assign var='i' value=$i+1}
{if $COLNUM[$j][$i] == '0'}
<td width="20%" scope="row">{$ITEM_HEADER_IMAGE[$j][$i]}&nbsp;<a href='{$ITEM_URL[$j][$i]}' class="tabDetailViewDL2Link">{$ITEM_HEADER_LABEL[$j][$i]}</a></td>
<td width="30%">{$ITEM_DESCRIPTION[$j][$i]}</td>
{else}
<td width="20%" scope="row">&nbsp;</td>
<td width="30%">&nbsp;</td>
{/if}
</tr>
{/if}
{assign var='i' value=$i+1}
{/foreach}
</table>
<p/>
{/foreach}
</div>
</div>
<div class="mr"></div>
</div>
<div class="ft"><div class="bl"></div><div class="ft-center"></div><div class="br"></div></div>
</div>

View 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".
********************************************************************************/
*}
<form>
<h3>{$MOD.LBL_QUICK_REPAIR_TITLE}</h3><br/>
<input type="hidden" name="action" value="QuickRepairAndRebuild"/>
<input type="hidden" name="subaction" value="repairAndClearAll"/> <!--Switch based on $_REQUEST type!-->
<input type="hidden" name="module" value="Administration"/>
{html_options multiple ="1" size="10" name=repair_module[] values=$values output=$output selected=$MOD.LBL_ALL_MODULES}
<br/><br/>
{html_checkboxes name="selected_actions" values = $checkbox_values output = $checkbox_output separator="<br />" selected=$checkbox_values }
<br/>
<input class="button" type="submit" value="{$MOD.LBL_REPAIR}"/>
</form>

View 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".
********************************************************************************/
*}
<h3>{$MOD.LBL_REPAIR_DATABASE_DIFFERENCES}</h3>
<p>{$MOD.LBL_REPAIR_DATABASE_TEXT}</p>
<form name="RepairDatabaseForm" method="post">
<input type="hidden" name="module" value="Administration"/>
<input type="hidden" name="action" value="repairDatabase"/>
<input type="hidden" name="raction" value="execute"/>
<textarea name="sql" rows="24" cols="150" id="repairsql">{$qry_str}</textarea>
<br/>
<input type="button" class="button" value="{$MOD.LBL_REPAIR_DATABASE_EXECUTE}" onClick="document.RepairDatabaseForm.submit();"/>
<input type="button" class="button" value="{$MOD.LBL_REPAIR_DATABASE_EXPORT}" onClick="document.RepairDatabaseForm.raction.value='export'; document.RepairDatabaseForm.submit();"/>

View 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 src="./modules/Administration/javascript/Administration.js"></script>
<script src="./modules/Administration/javascript/Async.js"></script>
<script src="./include/JSON.js"></script>
<div>
{$mod.LBL_REPAIRXSS_INSTRUCTIONS}
</div>
<br>
<div id="cleanXssMain">
{$beanDropDown} <div id="repairXssButton" style="display:none;">
<input type="button" class="button" onclick="SUGAR.Administration.RepairXSS.executeRepair();" value=" {$mod.LBL_EXECUTE} ">
</div>
</div>
<br>
<div id="repairXssDisplay" style="display:none;">
<input size='5' type="text" disabled id="repairXssCount" value="0"> {$mod.LBL_REPAIRXSS_COUNT}
</div>
<br>
<div id="repairXssResults" style="display:none;">
<input size='5' type="text" disabled id="repairXssResultCount" value="0"> {$mod.LBL_REPAIRXSS_REPAIRED}
</div>

View File

@@ -0,0 +1,169 @@
{*
/*********************************************************************************
* 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="include/javascript/sugar_grp_yui_widgets.js"></script>
<link rel="stylesheet" type="text/css" href="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
<style>.yui-dt-scrollable .yui-dt-bd {ldelim}overflow-x: hidden;{rdelim}</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan='100'><h2>{$title}</h2></td></tr>
<tr><td><i class="info">{$msg}</i></td></tr>
<td colspan='100'>
{if empty($msg)}
<form name="ConfigureShortcutBar" method="POST" method="POST" action="index.php">
<input type="hidden" name="module" value="Administration">
<input type="hidden" name="action" value="ConfigureShortcutBar">
<input type="hidden" id="enabled_modules" name="enabled_modules" value="">
<input type="hidden" name="return_module" value="{$RETURN_MODULE}">
<input type="hidden" name="return_action" value="{$RETURN_ACTION}">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.saveShortcutBar();" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" >
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{$RETURN_ACTION}'; this.form.module.value='{$RETURN_MODULE}';" type="submit" name="button" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} ">
</td>
</tr>
</table>
<div class='add_table' style='margin-bottom:5px'>
<table id="ConfigureTabs" class="themeSettings edit view" style='margin-bottom:0px;' border="0" cellspacing="0" cellpadding="0">
<tr>
<td width='1%'>
<div id="enabled_div"></div>
</td>
<td>
<div id="disabled_div"></div>
</td>
</tr>
</table>
</div>
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.saveShortcutBar();" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" >
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{$RETURN_ACTION}'; this.form.module.value='{$RETURN_MODULE}';" type="submit" name="button" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} ">
</td>
</tr>
</table>
</form>
<script type="text/javascript">
(function(){ldelim}
var Connect = YAHOO.util.Connect;
Connect.url = 'index.php';
Connect.method = 'POST';
Connect.timeout = 300000;
var enabled_modules = {$enabled_modules};
var disabled_modules = {$disabled_modules};
var lblEnabled = '{sugar_translate label="LBL_ACTIVE_MODULES"}';
var lblDisabled = '{sugar_translate label="LBL_DISABLED_MODULES"}';
{literal}
SUGAR.prodEnabledTable = new YAHOO.SUGAR.DragDropTable(
"enabled_div",
[{key:"label", label: lblEnabled, width: 200, sortable: false},
{key:"module", label: lblEnabled, hidden:true}],
new YAHOO.util.LocalDataSource(enabled_modules, {
responseSchema: {
resultsList : "modules",
fields : [{key : "module"}, {key : "label"}]
}
}),
{height: "300px"}
);
SUGAR.prodDisabledTable = new YAHOO.SUGAR.DragDropTable(
"disabled_div",
[{key:"label", label: lblDisabled, width: 200, sortable: false},
{key:"module", label: lblDisabled, hidden:true}],
new YAHOO.util.LocalDataSource(disabled_modules, {
responseSchema: {
resultsList : "modules",
fields : [{key : "module"}, {key : "label"}]
}
}),
{height: "300px"}
);
SUGAR.prodEnabledTable.disableEmptyRows = true;
SUGAR.prodDisabledTable.disableEmptyRows = true;
SUGAR.prodEnabledTable.addRow({module: "", label: ""});
SUGAR.prodDisabledTable.addRow({module: "", label: ""});
SUGAR.prodEnabledTable.render();
SUGAR.prodDisabledTable.render();
SUGAR.saveShortcutBar = function()
{
var enabledTable = SUGAR.prodEnabledTable;
var modules = [];
if ( enabledTable.getRecordSet().getLength() > 11) //Max 10 + empty line
{
alert('{/literal}{sugar_translate label="LBL_ERROR_PROD_BAR_NUM_MODULES"}{literal}');
return false;
}
for(var i=0; i < enabledTable.getRecordSet().getLength(); i++){
var data = enabledTable.getRecord(i).getData();
if (data.module && data.module != '')
modules[i] = data.module;
}
ajaxStatus.showStatus(SUGAR.language.get('Administration', 'LBL_SAVING'));
//YAHOO.SUGAR.MessageBox.show({title:"saving",msg:"Saving",close:false})
Connect.asyncRequest(
Connect.method,
Connect.url,
{success: SUGAR.saveCallBack},
'to_pdf=1&module=Administration&action=ConfigureShortcutBar&enabled_modules=' + YAHOO.lang.JSON.stringify(modules)
);
return true;
}
SUGAR.saveCallBack = function(o)
{
ajaxStatus.flashStatus(SUGAR.language.get('app_strings', 'LBL_DONE'));
if (o.responseText == "true")
{
window.location.assign('index.php?module=Administration&action=ConfigureShortcutBar');
}
else
{
YAHOO.SUGAR.MessageBox.show({msg:o.responseText});
}
}
})();
{/literal}
</script>
{/if}

View File

@@ -0,0 +1,148 @@
{*
/*********************************************************************************
* 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="include/javascript/sugar_grp_yui_widgets.js"></script>
<link rel="stylesheet" type="text/css" href="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
<form name="themeSettings" method="POST">
<input type="hidden" name="module" value="Administration">
<input type="hidden" name="action" value="ThemeSettings">
<input type="hidden" name="disabled_themes" value="">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary" onclick="SUGAR.saveThemeSettings();" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.themeSettings.action.value='';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td>
</tr>
</table>
<div class='add_table' style='margin-bottom:5px'>
<table id="themeSettings" class="themeSettings edit view" style='margin-bottom:0px;' border="0" cellspacing="0" cellpadding="0">
<tr>
<td width='1%'>
<div id="enabled_div"></div>
</td>
<td>
<div id="disabled_div"></div>
</td>
</tr>
</table>
</div>
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary" onclick="SUGAR.saveThemeSettings();" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.themeSettings.action.value='';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td>
</tr>
</table>
</form>
<script type="text/javascript">
(function(){ldelim}
var Connect = YAHOO.util.Connect;
Connect.url = 'index.php';
Connect.method = 'POST';
Connect.timeout = 300000;
var enabled_modules = {$enabled_modules};
var disabled_modules = {$disabled_modules};
var lblEnabled = '{sugar_translate label="LBL_ACTIVE_THEMES"}';
var lblDisabled = '{sugar_translate label="LBL_DISABLED_THEMES"}';
{literal}
SUGAR.themeEnabledTable = new YAHOO.SUGAR.DragDropTable(
"enabled_div",
[{key:"theme", label: lblEnabled, width: 200, sortable: false},
{key:"dir", hidden:true}],
new YAHOO.util.LocalDataSource(enabled_modules, {
responseSchema: {fields : [{key : "theme"}, {key : "dir"}]}
}),
{height: "300px"}
);
SUGAR.themeDisabledTable = new YAHOO.SUGAR.DragDropTable(
"disabled_div",
[{key:"theme", label: lblDisabled, width: 200, sortable: false},
{key:"dir", hidden:true}],
new YAHOO.util.LocalDataSource(disabled_modules, {
responseSchema: {fields : [{key : "theme"}, {key : "dir"}]}
}),
{height: "300px"}
);
SUGAR.themeEnabledTable.disableEmptyRows = true;
SUGAR.themeDisabledTable.disableEmptyRows = true;
SUGAR.themeEnabledTable.addRow({module: "", label: ""});
SUGAR.themeDisabledTable.addRow({module: "", label: ""});
SUGAR.themeEnabledTable.render();
SUGAR.themeDisabledTable.render();
SUGAR.saveThemeSettings = function()
{
var disabledTable = SUGAR.themeDisabledTable;
var themes = [];
for(var i=0; i < disabledTable.getRecordSet().getLength(); i++){
var data = disabledTable.getRecord(i).getData();
if (data.dir && data.dir != '')
themes[i] = data.dir;
}
ajaxStatus.showStatus(SUGAR.language.get('Administration', 'LBL_SAVING'));
Connect.asyncRequest(
Connect.method,
Connect.url,
{success: SUGAR.saveCallBack},
'to_pdf=1&module=Administration&action=ThemeSettings&disabled_themes=' + YAHOO.lang.JSON.stringify(themes)
);
return true;
}
SUGAR.saveCallBack = function(o)
{
ajaxStatus.flashStatus(SUGAR.language.get('app_strings', 'LBL_DONE'));
if (o.responseText == "true")
{
window.location.assign('index.php?module=Administration&action=ThemeSettings');
}
else
{
YAHOO.SUGAR.MessageBox.show({msg:o.responseText});
}
}
})();
{/literal}
</script>

View File

@@ -0,0 +1,92 @@
{*
/*********************************************************************************
* 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="bugsQuickCreate" id="bugsQuickCreate" method="POST" action="index.php">
<input type="hidden" name="module" value="Bugs">
<input type="hidden" name="email_id" value="{$REQUEST.email_id}">
<input type="hidden" name="account_id" value="{$REQUEST.account_id}">
<input type="hidden" name="case_id" value="{$REQUEST.acase_id}">
<input type="hidden" name="contact_id" value="{$REQUEST.contact_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="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('BugsQuickCreate');\""} 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='Bugs';" 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_BUG_INFORMATION}</slot></h4></th>
</tr>
<tr>
<td valign="top" scope="row" width="15%"><slot>{$MOD.LBL_SUBJECT} <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>
<td scope="row" width="15%"><slot>{$MOD.LBL_TYPE}</slot></td>
<td width="35%"><slot><select tabindex='2' name='type'>{$TYPE_OPTIONS}</select></slot></td>
</tr>
<tr>
<td valign="top" scope="row" rowspan="2" width="15%"><slot>{$MOD.LBL_DESCRIPTION}</slot></td>
<td rowspan="2" width="35%"><slot><textarea name='description' tabindex='1' cols="40" rows="4">{$DESCRIPTION}</textarea></slot></td>
<td scope="row" width="15%"><slot>{$MOD.LBL_PRIORITY}</slot></td>
<td nowrap width="35%"><slot><select tabindex='2' name='priority'>{$PRIORITY_OPTIONS}</select></slot></td>
</tr>
<tr>
<td scope="row" width="15%"><slot>{$MOD.LBL_STATUS}</slot></td>
<td width="35%"><slot><select tabindex='2' name='status'>{$STATUS_OPTIONS}</select></slot></td>
</tr>
</table>
</form>
<script>
{$additionalScripts}
</script>

View File

@@ -0,0 +1,140 @@
{*
/**
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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".
*/
// $Id$
*}
<form name="callsQuickCreate" id="callsQuickCreate" method="POST" action="index.php">
<input type="hidden" name="module" value="Calls">
<input type="hidden" name="record" value="">
<input type="hidden" name="lead_id" value="{$REQUEST.lead_id}">
<input type="hidden" name="contact_id" value="{$REQUEST.contact_id}">
<input type="hidden" name="contact_name" value="{$REQUEST.contact_name}">
<input type="hidden" name="email_id" value="{$REQUEST.email_id}">
<input type="hidden" name="contact_invitees" value="{$REQUEST.contact_id}">
<input type="hidden" name="account_id" value="{$REQUEST.account_id}">
<input type="hidden" name="opportunity_id" value="{$REQUEST.opportunity_id}">
<input type="hidden" name="acase_id" value="{$REQUEST.acase_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="duplicate_parent_id" value="{$REQUEST.duplicate_parent_id}">
<!--
CL: Bug fix for 9291 and 9427 - parent_id should be parent_type, not the module type (if set)
-->
{if $REQUEST.parent_id}
<input type="hidden" name="parent_id" value="{$REQUEST.parent_id}">
{else}
<input type="hidden" name="parent_id" value="{$REQUEST.return_id}">
{/if}
{if $REQUEST.parent_type}
<input type="hidden" name="parent_type" value="{$REQUEST.parent_type}">
{else}
<input type="hidden" name="parent_type" value="{$REQUEST.return_module}">
{/if}
<input type="hidden" name="parent_name" value="{$REQUEST.parent_name}">
<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('CallsQuickCreate');\""} 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='Calls';" 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_NEW_FORM_TITLE}</slot></h4></th>
</tr>
<tr>
<td valign="top" class="dataLabel"><slot>{$MOD.LBL_SUBJECT} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td><slot><textarea name='name' cols="50" tabindex='1' rows="1">{$NAME}</textarea></slot></td>
<td class="dataLabel" width="15%"><slot>{$MOD.LBL_STATUS} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td><slot><select tabindex="2" name='direction'>{$DIRECTION_OPTIONS}</select> <select tabindex="2" name='status'>{$STATUS_OPTIONS}</select></slot></td>
</tr>
<tr>
<td valign="top" class="dataLabel" rowspan="2"><slot>{$MOD.LBL_DESCRIPTION}</slot></td>
<td rowspan="2"><slot><textarea name='description' tabindex='1' cols="50" rows="4">{$DESCRIPTION}</textarea></slot></td>
<td class="dataLabel"><slot>{$MOD.LBL_DATE_TIME}</slot></td>
<td class="dataField"><slot>
<table cellpadding="0" cellspacing="0">
<tr>
<td nowrap>
<input name='date_start' id='jscal_field' onblur="parseDate(this, '{$USER_DATEFORMAT}');" tabindex='2' size='11' maxlength='10' type="text" value="{$DATE_START}">
<img src="themes/default/images//jscalendar.gif" alt="{$USER_DATEFORMAT}" id="jscal_trigger" align="absmiddle">&nbsp;</td>
<td nowrap>
<select name='time_hour_start' tabindex="2">{$TIME_START_HOUR_OPTIONS}</select>{$TIME_SEPARATOR}
<select name='time_minute_start' tabindex="2">{$TIME_START_MINUTE_OPTIONS}</select>
{if $TIME_MERIDIEM}
<select name='meridiem' tabindex="2">{$TIME_MERIDIEM}</select>
{/if}
</td>
</tr>
<tr>
<td nowrap><span class="dateFormat">{$USER_DATEFORMAT}</span></td>
<td nowrap><span class="dateFormat">{$TIME_FORMAT}</span></td>
</tr>
</table></slot>
</td>
</tr>
<tr>
<td class="dataLabel" valign="top"><slot>{$MOD.LBL_DURATION} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td valign="top" class="dataField"><slot><input name='duration_hours' tabindex="2" size='2' maxlength='2' type="text" value='{$DURATION_HOURS}'> <select tabindex="2" name='duration_minutes'>{$DURATION_MINUTES_OPTIONS}</select> {$MOD.LBL_HOURS_MINS}</slot></td>
</tr>
</table>
</form>
<script type="text/javascript">
{literal}
Calendar.setup ({
inputField : "jscal_field", daFormat : "{/literal}{$CALENDAR_FORMAT}{literal}", onClose: function(cal) { cal.hide(); }, showsTime : false, button : "jscal_trigger", singleClick : true, step : 1
});
{/literal}
{$additionalScripts}
</script>

0
modules/Calls/tpls/footer.tpl Executable file
View File

View 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 width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="list view">
<tr>
<th>&nbsp;</td>
<th align="center">{$lbl_campaign_name}</td>
<th align="center">{$lbl_revenue}</td>
</tr>
{counter name="num" assign="num"}
{foreach from=$top_campaigns item="campaign"}
<tr>
<td class="oddListRowS1" align="center" valign="top" width="6%">{$num}.</td>
<td class="oddListRowS1" align="left" valign="top" width="74%"><a href="index.php?module=Campaigns&action=DetailView&record={$campaign.campaign_id}">{$campaign.campaign_name}</a></td>
<td class="oddListRowS1" align="left" valign="top" width="20%">{$campaign.revenue}</td>
</tr>
{counter name="num"}
{/foreach}
</table>

View File

@@ -0,0 +1,294 @@
{*
/*********************************************************************************
* 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="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
<!-- begin includes for overlib -->
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000"></div>
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_overlib.js'}"></script>
<!-- end includes for overlib -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan='100'><h2>{$title}</h2></td></tr>
<tr><td colspan='100'>
{$description}
</td></tr><tr><td><br></td></tr><tr><td colspan='100'>
<form name="ConfigureSubs" method="POST" method="POST" action="index.php">
<form enctype="multipart/form-data" id="SubsForm" name="SubsForm" method="POST" action="index.php">
<input type="hidden" name="module" value="Campaigns">
<input type="hidden" name="action" value="Subscriptions">
<input type="hidden" name="enabled_subs" value="">
<input type="hidden" name="disabled_subs" value="">
<input type="hidden" name="return_module" value="{$RETURN_MODULE}">
<input type="hidden" name="return_action" value="{$RETURN_ACTION}">
<input type="hidden" name="module_tab" value="{$smarty.request.module_tab}">
<input type="hidden" name="orig_disabled_values" id="orig_disabled_values" value="{$disabled_subs_string}">
<input type="hidden" name="orig_enabled_values" id="orig_enabled_values" value="{$enabled_subs_string}">
<input type="hidden" name="record" value="{$RECORD}">
<input type="hidden" name="subs_action" value="process">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="save();this.form.action.value='Subscriptions'; " type="submit" name="button" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{$RETURN_ACTION}'; this.form.module.value='{$RETURN_MODULE}';" type="submit" name="button" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} ">
</td>
</tr>
</table>
<div class='add_table' style='margin-bottom:5px'>
<table id="ConfigureSubs" class="themeSettings edit view" style='margin-bottom:0px;' border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span><b>{$MOD.LBL_ALREADY_SUBSCRIBED_HEADER}</b></span></td>
<td><span><b>{$MOD.LBL_UNSUBSCRIBED_HEADER}</b>
<img border="0" src="{sugar_getimagepath file='helpInline.gif'}"
onmouseover="return overlib('{$MOD.LBL_UNSUBSCRIBED_HEADER_EXPL}', FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass', CLOSEFONTCLASS, 'olCloseFontClass' );" onmouseout="return nd();" >
</span></td>
</tr>
<tr>
<td width='1%'>
<div id="enabled_div" class="enabled_tab_workarea">
<ul id="enabled_ul" class="module_draglist">
{foreach from=$enabled_subs key=dirname item=name}
<li id="{$dirname}" class="noBullet2">{$name}</li>
{/foreach}
</ul>
</div>
</td>
<td>
<div id="disabled_div" class="disabled_tab_workarea">
<ul id="disabled_ul" class="module_draglist">
{foreach from=$disabled_subs key=dirname item=name}
<li id="{$dirname}" class="noBullet2">{$name}</li>
{/foreach}
</ul>
</div>
</td>
</tr>
</table>
</div>
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="save();this.form.action.value='Subscriptions'; " type="submit" name="button" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{$RETURN_ACTION}'; this.form.module.value='{$RETURN_MODULE}';" type="submit" name="button" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} ">
</td>
</tr>
</table>
</form>
<script type="text/javascript">
{literal}
var Dom = YAHOO.util.Dom;
var Event = YAHOO.util.Event;
var DDM = YAHOO.util.DragDropMgr;
function save() {
var enabled_display_vals = '';
var disabled_display_vals = '';
//Get the enabled div elements
var elements = document.getElementById('enabled_div');
//Get the li elements
var enabled_list = YAHOO.util.Dom.getElementsByClassName('noBullet2', 'li', elements);
for(var li in enabled_list) {
if(typeof enabled_list[li] != 'function') {
enabled_display_vals += ',' + enabled_list[li].getAttribute('id');
}
}
document.ConfigureSubs.enabled_subs.value = enabled_display_vals != '' ? enabled_display_vals.substr(1,enabled_display_vals.length) : '';
var elements = document.getElementById('disabled_div');
//Get the li elements
var disabled_list = YAHOO.util.Dom.getElementsByClassName('noBullet2', 'li', elements);
for(var li in disabled_list) {
if(typeof disabled_list[li] != 'function') {
disabled_display_vals += ',' + disabled_list[li].getAttribute('id');
}
}
document.ConfigureSubs.disabled_subs.value = disabled_display_vals != '' ? disabled_display_vals.substr(1,disabled_display_vals.length) : '';
}
(function() {
YAHOO.example.DDApp = {
init: function() {
{/literal}
new YAHOO.util.DDTarget("enabled_ul");
new YAHOO.util.DDTarget("disabled_ul");
{foreach from=$enabled_subs key=module item=moduleDisplay}
{if $module != $currentTheme}new YAHOO.example.DDList("{$module}");{/if}
{/foreach}
{foreach from=$disabled_subs key=module item=moduleDisplay}
new YAHOO.example.DDList("{$module}");
{/foreach}
{literal}
}
};
YAHOO.example.DDList = function(id, sGroup, config) {
YAHOO.example.DDList.superclass.constructor.call(this, id, sGroup, config);
var el = this.getDragEl();
Dom.setStyle(el, "opacity", 0.67);
this.goingUp = false;
this.lastY = 0;
};
YAHOO.extend(YAHOO.example.DDList, YAHOO.util.DDProxy, {
startDrag: function(x, y) {
// make the proxy look like the source element
var dragEl = this.getDragEl();
var clickEl = this.getEl();
Dom.setStyle(clickEl, "visibility", "hidden");
dragEl.innerHTML = clickEl.innerHTML;
Dom.setStyle(dragEl, "color", Dom.getStyle(clickEl, "color"));
Dom.setStyle(dragEl, "backgroundColor", Dom.getStyle(clickEl, "backgroundColor"));
Dom.setStyle(dragEl, "border", "2px solid gray");
},
endDrag: function(e) {
var srcEl = this.getEl();
var proxy = this.getDragEl();
// Show the proxy element and animate it to the src element's location
Dom.setStyle(proxy, "visibility", "");
var a = new YAHOO.util.Motion(
proxy, {
points: {
to: Dom.getXY(srcEl)
}
},
0.2,
YAHOO.util.Easing.easeOut
)
var proxyid = proxy.id;
var thisid = this.id;
// Hide the proxy and show the source element when finished with the animation
a.onComplete.subscribe(function() {
Dom.setStyle(proxyid, "visibility", "hidden");
Dom.setStyle(thisid, "visibility", "");
});
a.animate();
},
onDragDrop: function(e, id) {
// If there is one drop interaction, the li was dropped either on the list,
// or it was dropped on the current location of the source element.
if (DDM.interactionInfo.drop.length === 1) {
// The position of the cursor at the time of the drop (YAHOO.util.Point)
var pt = DDM.interactionInfo.point;
// The region occupied by the source element at the time of the drop
var region = DDM.interactionInfo.sourceRegion;
// Check to see if we are over the source element's location. We will
// append to the bottom of the list once we are sure it was a drop in
// the negative space (the area of the list without any list items)
if (!region.intersect(pt)) {
var destEl = Dom.get(id);
var destDD = DDM.getDDById(id);
destEl.appendChild(this.getEl());
destDD.isEmpty = false;
DDM.refreshCache();
}
}
},
onDrag: function(e) {
// Keep track of the direction of the drag for use during onDragOver
var y = Event.getPageY(e);
if (y < this.lastY) {
this.goingUp = true;
} else if (y > this.lastY) {
this.goingUp = false;
}
this.lastY = y;
},
onDragOver: function(e, id) {
var srcEl = this.getEl();
var destEl = Dom.get(id);
// We are only concerned with list items, we ignore the dragover
// notifications for the list.
if (destEl.nodeName.toLowerCase() == "li") {
var orig_p = srcEl.parentNode;
var p = destEl.parentNode;
if (this.goingUp) {
p.insertBefore(srcEl, destEl); // insert above
} else {
p.insertBefore(srcEl, destEl.nextSibling); // insert below
}
DDM.refreshCache();
}
}
});
Event.onDOMReady(YAHOO.example.DDApp.init, YAHOO.example.DDApp, true);
})();
{/literal}
</script>
<!-- END: main -->

62
modules/Campaigns/chart.tpl Executable file
View 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".
********************************************************************************/
*}
<!-- BEGIN: main -->
<graphData title="{GRAPHTITLE}">
<yData defaultAltText="{Y_DEFAULT_ALT_TEXT}">
<!-- BEGIN: row -->
<dataRow title="{Y_ROW_TITLE}" endLabel="{Y_ROW_ENDLABEl}">
<!-- BEGIN: bar -->
<bar id="{Y_BAR_ID}" totalSize="{Y_BAR_SIZE}" altText="{Y_BAR_ALTTEXT}" url="{Y_BAR_URL}"/>
<!-- END: bar -->
</dataRow>
<!-- END: row -->
</yData>
<xData min="{XMIN}" max="{XMAX}" length="{XLENGTH}" kDelim="{XKDELIM}" prefix="{XPREFIX}" suffix="{XSUFFIX}"/>
<colorLegend status="on">
<mapping id="'.$outcome.'" name="'.$outcome_translation.'" color="'.$color.'"/>
</colorLegend>
<graphInfo><![CDATA[{GRAPH_DATA}]]></graphInfo>
<chartColors {COLOR_DEFS}/>
</graphData>
<!-- END: main -->

View File

@@ -0,0 +1,136 @@
{*
/*********************************************************************************
* 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%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="4" align="left" ><h4>{$MOD.LBL_WIZ_NEWSLETTER_TITLE_STEP2}</h4></th>
</tr>
<tr><td class="datalabel" colspan="3">{$MOD.LBL_WIZARD_BUDGET_MESSAGE}<br></td><td>&nbsp;</td></tr>
<tr><td class="datalabel" colspan="4">&nbsp;</td></tr>
<tr>
<td scope="row"><span sugar='slot14'>{$MOD.LBL_CAMPAIGN_BUDGET}</span sugar='slot'></td>
<td ><span sugar='slot14b'><input type="text" size="10" tabindex="1" maxlength="15" id="budget" name="wiz_step2_budget" title="{$MOD.LBL_CAMPAIGN_BUDGET}" value="{$CAMP_BUDGET}"></span sugar='slot'></td>
<td scope="row"><span sugar='slot15'>{$MOD.LBL_CAMPAIGN_ACTUAL_COST}</span sugar='slot'></td>
<td ><span sugar='slot15b'><input type="text" size="10" tabindex='2' maxlength="15" id="actual_cost" name="wiz_step2_actual_cost" title="{$MOD.LBL_CAMPAIGN_ACTUAL_COST}" value="{$CAMP_ACTUAL_COST}"></span sugar='slot'></td>
</tr>
<tr>
<td scope="row"><span sugar='slot16'>{$MOD.LBL_CAMPAIGN_EXPECTED_REVENUE}</span sugar='slot'></td>
<td ><span sugar='slot16b'><input type="text" size="10" tabindex="1" maxlength="15" id="expected_revenue" name="wiz_step2_expected_revenue" title="{$MOD.LBL_CAMPAIGN_EXPECTED_REVENUE}" value="{$CAMP_EXPECTED_REVENUE}"></span sugar='slot'></td>
<td scope="row"><span sugar='slot17'>{$MOD.LBL_CAMPAIGN_EXPECTED_COST}</span sugar='slot'></td>
<td ><span sugar='slot17b'><input type="text" size="10" tabindex="2" maxlength="15" id="expected_cost" name="wiz_step2_expected_cost" title="{$MOD.LBL_CAMPAIGN_EXPECTED_COST}" value="{$CAMP_EXPECTED_COST}"></span sugar='slot'></td>
</tr>
<tr>
<td scope="row"><span sugar='slot18'>{$MOD.LBL_CURRENCY}</span sugar='slot'></td>
<td><span sugar='slot18b'><select tabindex='1' title='{$MOD.LBL_CURRENCY}' name='wiz_step2_currency_id' id='currency_id' onchange='ConvertItems(this.options[selectedIndex].value);'>{$CURRENCY}</select></span sugar='slot'></td>
<td scope="row"><span sugar='slot17'>{$MOD.LBL_CAMPAIGN_IMPRESSIONS}</span sugar='slot'></td>
<td ><span sugar='slot17b'><input type="text" size="10" tabindex="2" maxlength="15" id="impressions" name="wiz_step2_impressions" title="{$MOD.LBL_CAMPAIGN_IMPRESSIONS}" value="{$CAMP_IMPRESSIONS}"></span sugar='slot'></td></tr>
<tr>
<td scope="row"><span sugar='slot18'>&nbsp;</span sugar='slot'></td>
<td><span sugar='slot18b'>&nbsp;</td>
<td scope="row"><span sugar='slot19'>&nbsp;</span sugar='slot'></td>
<td><span sugar='slot19b'>&nbsp;</span sugar='slot'></td>
</tr>
<tr>
<td valign="top" scope="row"><span sugar='slot20'>{$MOD.LBL_CAMPAIGN_OBJECTIVE}</span sugar='slot'></td>
<td colspan="4"><span sugar='slot20b'><textarea id="objective" name="wiz_step2_objective" title='{$MOD.LBL_CAMPAIGN_OBJECTIVE}' tabindex='3' cols="110" rows="5">{$OBJECTIVE}</textarea></span sugar='slot'></td>
</tr>
<tr>
<td scope="row">&nbsp;</td>
<td>&nbsp;</td>
<td scope="row">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p>
<script>
var num_grp_sep ='{$NUM_GRP_SEP}';
var dec_sep = '{$DEC_SEP}';
/*
* this is the custom validation script that will validate the fields on step2 of wizard
*/
{literal}
function validate_step2(){
//add fields to validation and call generic validation script
var requiredTxt = SUGAR.language.get('app_strings', 'ERR_MISSING_REQUIRED_FIELDS');
if(validate['wizform']!='undefined'){delete validate['wizform']};
addToValidate('wizform', 'budget', 'float', false, document.getElementById('budget').title);
addToValidate('wizform', 'actual_cost', 'float', false, document.getElementById('actual_cost').title);
addToValidate('wizform', 'expected_revenue', 'float', false, document.getElementById('expected_revenue').title);
addToValidate('wizform', 'expected_cost', 'float', false, document.getElementById('expected_cost').title);
addToValidate('wizform', 'impressions', 'float', false, document.getElementById('impressions').title);
var check_date = new Date();
oldStartsWith =84;
return check_form('wizform');
}
function ConvertItems(id) {
var items = new Array();
//get the items that are to be converted
expected_revenue = document.getElementById('expected_revenue');
budget = document.getElementById('budget');
actual_cost = document.getElementById('actual_cost');
expected_cost = document.getElementById('expected_cost');
//unformat the values of the items to be converted
expected_revenue.value = unformatNumber(expected_revenue.value, num_grp_sep, dec_sep);
expected_cost.value = unformatNumber(expected_cost.value, num_grp_sep, dec_sep);
budget.value = unformatNumber(budget.value, num_grp_sep, dec_sep);
actual_cost.value = unformatNumber(actual_cost.value, num_grp_sep, dec_sep);
//add the items to an array
items[items.length] = expected_revenue;
items[items.length] = budget;
items[items.length] = expected_cost;
items[items.length] = actual_cost;
//call function that will convert currency
ConvertRate(id, items);
//Add formatting back to items
expected_revenue.value = formatNumber(expected_revenue.value, num_grp_sep, dec_sep);
expected_cost.value = formatNumber(expected_cost.value, num_grp_sep, dec_sep);
budget.value = formatNumber(budget.value, num_grp_sep, dec_sep);
actual_cost.value = formatNumber(actual_cost.value, num_grp_sep, dec_sep);
}
{/literal}
</script>

View File

@@ -0,0 +1,155 @@
{*
/*********************************************************************************
* 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 Campaign Diagnostic Link -->
{$CAMPAIGN_DIAGNOSTIC_LINK}
<!-- End Campaign Diagnostic Link -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><h3>{$MOD.LBL_WIZ_NEWSLETTER_TITLE_STEP1} </h3></div></td>
<td colspan="1">&nbsp;</td>
</tr>
<tr><td class="datalabel" colspan="3">{$MOD.LBL_WIZARD_HEADER_MESSAGE}<br></td><td>&nbsp;</td></tr>
<tr><td class="datalabel" colspan="4">&nbsp;</td></tr>
<tr>
<td width="17%" scope="row"><span sugar='slot1'>{$MOD.LBL_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></span sugar='slot'></td>
<td width="33%" ><span sugar='slot1b'><input id='name' name='wiz_step1_name' title='{$MOD.LBL_NAME}' {$DISABLED} tabindex='1' size='50' maxlength='50' type="text" value="{$CAMP_NAME}" ></span sugar='slot'></td>
<td width="15%" scope="row"><span sugar='slot2'>{$APP.LBL_ASSIGNED_TO}</span sugar='slot'></td>
<td width="35%" ><span sugar='slot2b'><input class="sqsEnabled" tabindex="2" autocomplete="off" id="assigned_user_name" name="wiz_step1_assigned_user_name" title='{$APP.LBL_ASSIGNED_TO}' type="text" value="{$ASSIGNED_USER_NAME}"><input id='assigned_user_id' name='wiz_step1_assigned_user_id' type="hidden" value="{$ASSIGNED_USER_ID}" />
<input title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='2' class="button" value='{$APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
onclick='open_popup("Users", 600, 400, "", true, false, {$encoded_users_popup_request_data});' /></span sugar='slot'>
</td>
</tr>
<tr>
<td width="15%" scope="row"><span sugar='slot3'>{$MOD.LBL_CAMPAIGN_STATUS} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></span sugar='slot'></td>
<td width="35%" ><span sugar='slot3b'><select tabindex='1' id='status' name='wiz_step1_status' title='{$MOD.LBL_CAMPAIGN_STATUS}'>{$STATUS_OPTIONS}</select></span sugar='slot'></td>
</tr>
<tr>
<td scope="row"><span sugar='slot5'>{$MOD.LBL_CAMPAIGN_START_DATE} </span sugar='slot'></td>
<td ><span sugar='slot5b'><input id='start_date' name='wiz_step1_start_date' title='{$MOD.LBL_CAMPAIGN_START_DATE}' onblur="parseDate(this, '{$CALENDAR_DATEFORMAT}');" type="text" tabindex='1' size='11' maxlength='10' value="{$CAMP_START_DATE}"> <img src="{sugar_getimagepath file='jscalendar.gif'}" alt="{$APP.LBL_ENTER_DATE}" id="start_date_trigger" align="absmiddle"> <span class="dateFormat">{$USER_DATEFORMAT}</span></span sugar='slot'></td>
<td scope="row"><span sugar='slot6'>{$MOD.LBL_CAMPAIGN_TYPE} </td>
<td><span sugar='slot6b'><{$SHOULD_TYPE_BE_DISABLED} id='campaign_type' title='{$MOD.LBL_CAMPAIGN_TYPE}' name='wiz_step1_campaign_type' >{$CAMPAIGN_TYPE_OPTIONS}</select></span sugar='slot'></td>
</tr>
<tr>
<td scope="row"><span sugar='slot7'>{$MOD.LBL_CAMPAIGN_END_DATE} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></span sugar='slot'></td>
<td ><span sugar='slot7b'><input id='end_date' name='wiz_step1_end_date' title='{$MOD.LBL_CAMPAIGN_END_DATE}' onblur="parseDate(this, '{$CALENDAR_DATEFORMAT}');" type="text" tabindex='1' size='11' maxlength='10' value="{$CAMP_END_DATE}"> <img src="{sugar_getimagepath file='jscalendar.gif'}" alt="{$APP.LBL_ENTER_DATE}" id="end_date_trigger" align="absmiddle"> <span class="dateFormat">{$USER_DATEFORMAT}</span></span sugar='slot'></td>
<td scope="row"><span sugar='slot8'>{$FREQUENCY_LABEL} </span sugar='slot'></td>
<td><span sugar='slot8b'><{$HIDE_FREQUENCY_IF_NEWSLETTER} tabindex='1' id='frequency' name='wiz_step1_frequency' title='{$MOD.LBL_CAMPAIGN_FREQUENCY}'>{$FREQ_OPTIONS}</select></span sugar='slot'></td>
</tr>
<tr>
<td width="15%" scope="row"><span sugar='slot9'>&nbsp;</span></span sugar='slot'></td>
<td width="35%" ><span sugar='slot9b'>&nbsp;</span sugar='slot'></td>
<td scope="row"><span sugar='slot10'>&nbsp;</span sugar='slot'></td>
<td><span sugar='slot10b'>&nbsp;</span sugar='slot'></td>
<tr>
</tr>
<td valign="top" scope="row"><span sugar='slot10'>{$MOD.LBL_CAMPAIGN_CONTENT}</span sugar='slot'></td>
<td colspan="3"><span sugar='slot10a'><textarea id='wiz_content' name='wiz_step1_content' title='{$MOD.LBL_CAMPAIGN_CONTENT}' tabindex='3' cols="110" rows="5">{$CONTENT}</textarea></span sugar='slot'></td>
</tr>
<tr>
<td scope="row">&nbsp;</td>
<td>&nbsp;</td>
<td scope="row">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table><p>
{literal}
<script type="text/javascript">
Calendar.setup ({{/literal}
inputField : "start_date", ifFormat : "{$CALENDAR_DATEFORMAT}", showsTime : false, button : "start_date_trigger", singleClick : true, step : 1, weekNumbers:false
{literal}
});
Calendar.setup ({{/literal}
inputField : "end_date", ifFormat : "{$CALENDAR_DATEFORMAT}", showsTime : false, button : "end_date_trigger", singleClick : true, step : 2, weekNumbers:false
{literal}
});
/*
* this is the custom validation script that will validate the fields on step1 of wizard
*/
function validate_step1(){
//loop through and check for empty strings (' ')
requiredTxt = SUGAR.language.get('app_strings', 'ERR_MISSING_REQUIRED_FIELDS');
var stepname = 'wiz_step_1_';
var has_error = 0;
var fields = new Array();
fields[0] = 'name';
fields[1] = 'status';
fields[2] = 'end_date';
var field_value = '';
for (i=0; i < fields.length; i++){
if(document.getElementById(fields[i]) !=null){
field_value = trim(document.getElementById(fields[i]).value);
if(field_value.length<1){
//throw error if string is empty
add_error_style('wizform', fields[i], requiredTxt +' ' +document.getElementById(fields[i]).title );
has_error = 1;
}
}
}
if(has_error == 1){
//error has been thrown, return false
return false;
}
//add fields to validation and call generic validation script
if(validate['wizform']!='undefined'){delete validate['wizform']};
addToValidate('wizform', 'name', 'alphanumeric', true, document.getElementById('name').title);
addToValidate('wizform', 'status', 'alphanumeric', true, document.getElementById('status').title);
addToValidate('wizform', 'end_date', 'date', true, document.getElementById('end_date').title);
addToValidate('wizform', 'start_date', 'date', false, document.getElementById('start_date').title);
addToValidate('wizform', 'currency_id', 'alphanumeric', false, document.getElementById('currency_id').title);
return check_form('wizform');
}
</script>
{/literal}

View 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".
********************************************************************************/
/*********************************************************************************
********************************************************************************/
*}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="4" align="left" ><h4>{$MOD.LBL_WIZ_NEWSLETTER_TITLE_STEP4}</h4></th>
</tr>
<tr>
<td scope="row" colspan="4">{$MOD.LBL_WIZARD_SUBSCRIPTION_MESSAGE}<br></td>
</tr>
<tr>
<td scope="row" colspan="4">&nbsp;</td>
</tr>
<tr>
<td scope="row"><span sugar='slot26'><img border="0" src="{sugar_getimagepath file='helpInline.gif'}" onmouseover="return overlib('{$MOD.LBL_SUBSCRIPTION_TARGET_WIZARD_DESC}', FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass', CLOSEFONTCLASS, 'olCloseFontClass' );" onmouseout="return nd();" >
{$MOD.LBL_SUBSCRIPTION_LIST_NAME}</span sugar='slot'>
</td>
<td><input type='radio' onclick="change_target_list(this,'subs');" name='wiz_subscriptions_def_type' id='wiz_subscriptions_def_type' title="{$MOD.LBL_DEFAULT_LOCATION}" value="1" >{$MOD.LBL_DEFAULT_LOCATION}<br>
<input type='radio' onclick="change_target_list(this,'subs');" name='wiz_subscriptions_def_type' id='wiz_subscriptions_def_type' title="{$MOD.LBL_CUSTOM_LOCATION}" value="2" checked >{$MOD.LBL_CUSTOM_LOCATION}
</td>
<td colspan='2'><span sugar='slot26b'>
<input class="sqsEnabled" autocomplete="off" id="subscription_name" name="wiz_step3_subscription_name" title='{$MOD.LBL_SUBSCRIPTION_LIST_NAME}' type="text" size='35' value="{$SUBSCRIPTION_NAME}">
<input id='prospect_list_type_default' name='prospect_list_type_default' type="hidden" value="default" />
<input id='wiz_step3_subscription_name_id' name='wiz_step3_subscription_list_id' title='Subscription List ID' type="hidden" value='{$SUBSCRIPTION_ID}'>
<input title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{$APP.LBL_SELECT_BUTTON_LABEL}' name=btn1 id='wiz_step3_subscription_name_button'
onclick='open_popup("ProspectLists", 600, 400, "&list_type=default", true, false, {$encoded_subscription_popup_request_data}, "single", true);'>
</span sugar='slot'></td>
</tr>
<tr><td colspan='4'>&nbsp;</td></tr>
<tr>
<td scope="row"><span sugar='slot27'><img border="0" src="{sugar_getimagepath file='helpInline.gif'}" onmouseover="return overlib('{$MOD.LBL_UNSUBSCRIPTION_TARGET_WIZARD_DESC}', FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass', CLOSEFONTCLASS, 'olCloseFontClass' );" onmouseout="return nd();" >
{$MOD.LBL_UNSUBSCRIPTION_LIST_NAME}</span sugar='slot'>
</td>
<td><input type='radio' onclick="change_target_list(this,'unsubs');" name='wiz_unsubscriptions_def_type' id='wiz_unsubscriptions_def_type' title="{$MOD.LBL_DEFAULT_LOCATION}" value="1">{$MOD.LBL_DEFAULT_LOCATION}<br>
<input type='radio' onclick="change_target_list(this,'unsubs');" name='wiz_unsubscriptions_def_type' id='wiz_unsubscriptions_def_type' title="{$MOD.LBL_CUSTOM_LOCATION}" value="2" checked>{$MOD.LBL_CUSTOM_LOCATION}
</td>
<td colspan='2'><span sugar='slot27b'>
<input class="sqsEnabled" autocomplete="off" id="unsubscription_name" name="wiz_step3_unsubscription_name" title='{$MOD.LBL_UNSUBSCRIPTION_LIST_NAME}' type="text" size='35' value="{$UNSUBSCRIPTION_NAME}" >
<input id='prospect_list_type_exempt' name='prospect_list_type_exempt' type="hidden" value="exempt" />
<input id='wiz_step3_unsubscription_name_id' name='wiz_step3_unsubscription_list_id' title='UnSubscription List ID' type="hidden" value='{$UNSUBSCRIPTION_ID}'>
<input title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{$APP.LBL_SELECT_BUTTON_LABEL}' name=btn2 id='wiz_step3_unsubscription_name_button'
onclick='open_popup("ProspectLists", 600, 400, "&list_type=exempt", true, false, {$encoded_unsubscription_popup_request_data}, "single", true);'>
</span sugar='slot'></td>
</tr>
<tr><td colspan='4'>&nbsp;</td></tr>
<tr>
<td scope="row">
<span sugar='slot28'><img border="0" src="{sugar_getimagepath file='helpInline.gif'}" onmouseover="return overlib('{$MOD.LBL_TEST_TARGET_WIZARD_DESC}', FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass', CLOSEFONTCLASS, 'olCloseFontClass' );" onmouseout="return nd();">
{$MOD.LBL_TEST_LIST_NAME}</span sugar='slot'>
</td>
<td><input type='radio' onclick="change_target_list(this,'test');" name='wiz_test_def_type' id='wiz_test_def_type' title="{$MOD.LBL_DEFAULT_LOCATION}" value="1" >{$MOD.LBL_DEFAULT_LOCATION}<br>
<input type='radio' onclick="change_target_list(this,'test');" name='wiz_test_def_type' id='wiz_test_def_type' title="{$MOD.LBL_CUSTOM_LOCATION}" value="2" checked >{$MOD.LBL_CUSTOM_LOCATION}
</td>
<td colspan='2'><span sugar='slot28b'>
<input class="sqsEnabled" autocomplete="off" id="test_name" name="wiz_step3_test_name" title='{$MOD.LBL_TEST_LIST_NAME}' type="text" size='35' value="{$TEST_NAME}">
<input id='prospect_list_type_test' name='prospect_list_type_test' type="hidden" value="test" />
<input id='wiz_step3_test_name_id' name='wiz_step3_test_list_id' title='Test List ID' type="hidden" value='{$TEST_ID}'>
<input title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{$APP.LBL_SELECT_BUTTON_LABEL}' name=btn3 id='wiz_step3_test_name_button'
onclick='open_popup("ProspectLists", 600, 400, "&list_type=test", true, false, {$encoded_test_popup_request_data}, "single", true);'>
</span sugar='slot'></td>
</tr>
<tr>
<td scope="row">&nbsp;</td>
<td>&nbsp;</td>
<td scope="row">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p>
{literal}
<script type="text/javascript" >
//this function will toggle the popup forms to be read only if "Default" is selected,
//and enable the pop up select if "Custom" is selected
function change_target_list(radiobutton,list) {
var def_value ='';
if(list == 'subs'){
list_name = 'wiz_step3_subscription_name';
{/literal}
def_id ='{$SUBSCRIPTION_ID}';
def_value ='{$SUBSCRIPTION_NAME}'
{literal}
}
if(list == 'unsubs'){
list_name = 'wiz_step3_unsubscription_name';
{/literal}
def_id ='{$UNSUBSCRIPTION_ID}';
def_value ='{$UNSUBSCRIPTION_NAME}'
{literal}
}
if(list == 'test'){
list_name = 'wiz_step3_test_name';
{/literal}
def_id ='{$TEST_ID}';
def_value ='{$TEST_NAME}'
{literal}
}
//default selected, set inputs to read only
if (radiobutton.value == '1') {
radiobutton.form[list_name].disabled=true;
radiobutton.form[list_name+"_button"].style.visibility='hidden';
radiobutton.form[list_name+"_id"].value=def_id;
//call function that populates the default value
change_target_list_names(list,def_value);
} else {
//custom selected, make inputs editable
radiobutton.form[list_name].disabled=false;
radiobutton.form[list_name+"_button"].style.visibility='visible';
radiobutton.form[list_name].value='';
radiobutton.form[list_name+"_id"].value='';
}
}
//this function will populate the "default" name on the target list. It will either do one,
//if specified, or all three widgets, if blank idis passed in
function change_target_list_names(list,def_value) {
//id was passed in, create the listname and inputname variables
if(list != ''){
switch (list){{/literal}
case 'subs':
listname = '{$MOD.LBL_SUBSCRIPTION_LIST}';
inputname = 'subscription_name';
break;
case 'unsubs':
listname = '{$MOD.LBL_UNSUBSCRIPTION_LIST}';
inputname = 'unsubscription_name';
break;
case 'test':
inputname = 'test_name';
listname = '{$MOD.LBL_TEST_LIST}';
break;
default:
inputname = '';
{literal}
}
}
//populate specified input with default value
if(def_value==''){
def_value = document.getElementById('name').value + ' ' + listname;}
document.getElementById(inputname).value = def_value;
}
</script>
{/literal}

View File

@@ -0,0 +1,307 @@
{*
/*********************************************************************************
* 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" id="existing_target_count" name="existing_target_count" value={$TARGET_COUNT}>
<input type="hidden" id="added_target_count" name="added_target_count" value=''>
<input type="hidden" id="wiz_list_of_existing_targets" name="wiz_list_of_existing_targets" value="">
<input type="hidden" id="wiz_list_of_targets" name="wiz_list_of_targets" value="">
<input type="hidden" id="wiz_remove_target_list" name="wiz_remove_target_list" value="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="5" align="left" ><h4>{$MOD.LBL_TARGET_LISTS}</h4></th>
</tr>
<tr>
<td scope="row" colspan="5">{$MOD.LBL_WIZARD_TARGET_MESSAGE1}<br></td>
</tr>
<tr><td colspan=5>&nbsp;</td></tr>
<tr>
<td scope="row" colspan="4">{$MOD.LBL_SELECT_TARGET}&nbsp;
<input id="popup_target_list_type" name="popup_target_list_type" type='hidden'>
<input id="popup_target_list_name" name="popup_target_list_name" type="hidden" value="">
<input id='popup_target_list_id' name='popup_target_list_id' title='List ID' type="hidden" value=''>
<input title="{$APP.LBL_SELECT_BUTTON_TITLE}" type="button" tabindex='1' class="button" value='{$APP.LBL_SELECT_BUTTON_LABEL}' name=btn3 id='target_list_button'
onclick='open_popup("ProspectLists", 600, 400, "", true, false, {$encoded_target_list_popup_request_data}, "single", true);'>
</span sugar='slot'>
</td>
<td scope="row">&nbsp;</td>
</tr>
<tr><td colspan=5>&nbsp;</td></tr>
<tr>
<td scope="row" colspan="5">{$MOD.LBL_WIZARD_TARGET_MESSAGE2}<br></td>
</tr>
<tr>
<td width='10%' scope="row">{$MOD.LBL_TARGET_NAME}</td>
<td width='20%' scope="row">
<input id="target_list_name" name="target_list_name" type='text' size='40'>
</td>
<td width='10%' scope="row">
<span sugar='slot28'>{$MOD.LBL_TARGET_TYPE}</span sugar='slot'>
</td>
<td width='20%' >
<span sugar='slot28b'>
<select id="target_list_type" name="target_list_type">{$TARGET_OPTIONS}</select>
<input id='target_list_id' name='target_list_id' title='List ID' type="hidden" value=''>
</span sugar='slot'>
</td>
<td width='30%'><input type='button' value ='{$MOD.LBL_CREATE_TARGET}' class= 'button' onclick="add_target('false');"></td>
</tr>
<tr><td colspan=5>&nbsp;</td></tr>
</table>
<table width = '100%' class='detail view'>
<tr><td>{$MOD.LBL_TRACKERS_ADDED}</td></tr>
<tr><td>
<table bprder=1 width='100%'><tr class='detail view'>
<td width='25%'><b>{$MOD.LBL_TARGET_NAME}</b></td>
<td width='25%'><b>{$MOD.LBL_TARGET_TYPE}</b></td><td>&nbsp;</td>
<td width='25%'><b>&nbsp;</b></td>
</tr>
</table>
<div id='added_targets'>
{$EXISTING_TARGETS}
</div>
</td></tr>
</table>
<p>
<script>
var image_path = '{$IMAGE_PATH}';
{literal}
//create variables that will be used to monitor the number of target url
var targets_added = 0;
//variable that will be passed back to server to specify list of targets
var wiz_list_of_targets_array = new Array();
//this function adds selected target to list
function add_target(from_popup){
//perform validation
if(validate_step4(from_popup)){
TRGTNAME = 'target_list_name';
TRGTID = 'target_list_id';
TRGTYPE = 'target_list_type';
if(from_popup == 'true'){
TRGTNAME = 'popup_target_list_name'
TRGTID = 'popup_target_list_id'
TRGTYPE = 'popup_target_list_type'
}
//increment target count value
targets_added++;
document.getElementById('added_target_count').value = targets_added ;
//get the appropriate values from target form
var trgt_name = document.getElementById(TRGTNAME);
var trgt_id = document.getElementById(TRGTID);
var trgt_type = document.getElementById(TRGTYPE);
// var selInd = trgt_type.selectedIndex;
// trgt_type_text_value = trgt_type.options[selInd].text
var trgt_type_text = trgt_type.value ;
{/literal}
//display the selected display text, not the value
{$PL_DOM_STMT}
{literal}
//construct html to display chosen tracker
var trgt_name_html = "<input id='target_name"+targets_added +"' type='hidden' size='20' maxlength='255' name='added_target_name"+targets_added+"' value='"+trgt_name.value+"' >"+trgt_name.value;
var trgt_id_html = "<input type='hidden' name='added_target_id"+trackers_added+"' id='added_target_id"+trackers_added+"' value='"+trgt_id.value+"' >";
var trgt_type_html = "<input name='added_target_type"+trackers_added+"' id='added_target_type"+trackers_added+"' type='hidden' value='"+trgt_type.value+"'/>"+trgt_type_text;
{/literal}
//display the html
var trgt_html = "<div id='trgt_added_"+targets_added+"'> <table width='100%' class='tabDetailViewDL2'><tr class='tabDetailViewDL2' ><td width='25%'>"+trgt_name_html+"</td><td width='25%'>"+trgt_type_html+"</td><td>"+trgt_id_html+"<a href='#' onclick=\"remove_target('trgt_added_"+targets_added+"','"+targets_added+"'); \" > <img src='{sugar_getimagepath file='delete_inline.gif'}' alt='rem' align='absmiddle' border='0' height='12' width='12'>{$MOD.LBL_REMOVE}</a></td></tr></table></div>";
document.getElementById('added_targets').innerHTML = document.getElementById('added_targets').innerHTML + trgt_html;
//add values to array in string, seperated by "@@" characters
wiz_list_of_targets_array[targets_added] = trgt_id.value+"@@"+trgt_name.value+"@@"+trgt_type.value;
//assign array to hidden input, which will be used by server to process array of targets
document.getElementById('wiz_list_of_targets').value = wiz_list_of_targets_array.toString();
//now lets clear the form to allow input of new target
trgt_name.value = '';
trgt_id.value = '';
trgt_type.value = 'default';
{literal}
if(targets_added ==1){
document.getElementById('no_targets').style.display='none';
}
}
}
//this function will remove the selected target from the ui, and from the target array
function remove_target(div,num){
//clear UI
var trgt_div = document.getElementById(div);
trgt_div.style.display = 'none';
parentNE=trgt_div.parentNode;
parentNE.removeChild(trgt_div);
//clear target array from this entry and assign to form input
wiz_list_of_targets_array[num] = '';
document.getElementById('wiz_list_of_targets').value = wiz_list_of_targets_array.toString();
}
//this function will remove the existing target from the ui, and add it's value to an array for removal upon save
function remove_existing_target(div,id){
//clear UI
var trgt_div = document.getElementById(div);
trgt_div.style.display = 'none';
parentNE=trgt_div.parentNode;
parentNE.removeChild(trgt_div);
//assign this id to form input for removal
document.getElementById('wiz_remove_target_list').value += ','+id;
}
/*
* this is the custom validation script that will validate the fields on step3 of wizard
* this is called directly from the add target button
*/
function validate_step4(from_popup){
if(from_popup=='true'){
return true;
}
requiredTxt = SUGAR.language.get('app_strings', 'ERR_MISSING_REQUIRED_FIELDS');
var stepname = 'wiz_step3_';
var has_error = 0;
var fields = new Array();
fields[0] = 'target_list_name';
fields[1] = 'target_list_type';
//loop through and check for empty strings (' ')
var field_value = '';
if( (trim(document.getElementById(fields[0]).value) !='') || (trim(document.getElementById(fields[1]).value) !='')){
for (i=0; i < fields.length; i++){
field_value = trim(document.getElementById(fields[i]).value);
if(field_value.length<1){
add_error_style('wizform', fields[i], requiredTxt +' ' +document.getElementById(fields[i]).title );
has_error = 1;
}
}
}else{
//no values have been entered, return false without error
return false;
}
//error has been thrown, return false
if(has_error == 1){
return false;
}
return true;
}
/**
*This function will iterate through list of targets and gather all the values. It will
*populate these values, seperated by delimiters into hidden inputs for processing
*/
function gathertargets(){
//start with the newly added targets, get count of total added
count = parseInt(targets_added);
final_list_of_targets_array = new Array();
//iterate through list of added targets
for(i=1;i<=count;i++){
//make sure all values exist
if( document.getElementById('target_name'+i) && document.getElementById('is_optout'+i) && document.getElementById('target_url'+i) ){
//make sure the check box value is int (0/1)
var opt_val = '0';
if(document.getElementById('is_optout'+i).checked){opt_val =1;}
//add values for this target entry into array of target entries
final_list_of_targets_array[i] = document.getElementById('target_name'+i).value+"@@"+opt_val+"@@"+document.getElementById('target_url'+i).value;
}
}
//assign array of target entries to hidden input, which will be used by server to process array of targets
document.getElementById('wiz_list_of_targets').value = final_list_of_targets_array.toString();
//Now lets process existing targets, get count of existing targets
count = parseInt(document.getElementById('existing_target_count').value);
final_list_of_existing_targets_array = new Array();
//iterate through list of existing targets
for(i=0;i<count;i++){
//make sure all values exist
if( document.getElementById('existing_target_name'+i) && document.getElementById('existing_is_optout'+i) && document.getElementById('existing_target_url'+i) ){
//make sure the check box value is int (0/1)
var opt_val = '0';
if(document.getElementById('existing_is_optout'+i).checked){opt_val =1;}
//add values for this target entry into array of target entries
final_list_of_existing_targets_array[i] = document.getElementById('existing_target_id'+i).value+"@@"+document.getElementById('existing_target_name'+i).value+"@@"+opt_val+"@@"+document.getElementById('existing_target_url'+i).value;
}
}
//assign array of target entries to hidden input, which will be used by server to process array of targets
document.getElementById('wiz_list_of_existing_targets').value = final_list_of_existing_targets_array.toString();
}
/*
*This function will populate values based on popup selection, and then call the
*function to add the entry to the list of targets
*/
function set_return_prospect_list(popup_reply_data)
{
var form_name = popup_reply_data.form_name;
var name_to_value_array = popup_reply_data.name_to_value_array;
for (var the_key in name_to_value_array)
{
if(the_key == 'toJSON')
{
/* just ignore */
}
else
{
window.document.forms[form_name].elements[the_key].value = name_to_value_array[the_key];
}
}
add_target('true');
}
</script>
{/literal}

View File

@@ -0,0 +1,256 @@
{*
/*********************************************************************************
* 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" id="existing_tracker_count" name="existing_tracker_count" value="{$TRACKER_COUNT}">
<input type="hidden" id="added_tracker_count" name="added_tracker_count" value=''>
<input type="hidden" id="wiz_list_of_existing_trackers" name="wiz_list_of_existing_trackers" value="">
<input type="hidden" id="wiz_list_of_trackers" name="wiz_list_of_trackers" value="">
<input type="hidden" id="wiz_remove_tracker_list" name="wiz_remove_tracker_list" value="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="4" align="left" ><h4>{$MOD.LBL_WIZ_NEWSLETTER_TITLE_STEP3}</h4></th>
</tr>
<tr><td class="datalabel" colspan="3">{$MOD.LBL_WIZARD_TRACKER_MESSAGE}<br></td><td>&nbsp;</td></tr>
<tr><td class="datalabel" colspan="4">&nbsp;</td></tr>
</table>
<div id='tracker_input_div'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" scope="row"><slot>{$MOD.LBL_EDIT_TRACKER_NAME}<span class="required">&nbsp;</span></slot></td>
<td width="25%" ><slot><input id="tracker_name" type="text" size="30" tabindex='1' name="tracker_name" title="{$MOD.LBL_EDIT_TRACKER_NAME}" value="{$TRACKER_NAME}"></slot></td>
<td width="25%" scope="row"><slot><input onclick="toggle_tracker_url(this);" name="is_optout" title="{$MOD.LBL_EDIT_OPT_OUT}" id="is_optout" tabindex='2' class="checkbox" type="checkbox" />&nbsp;{$MOD.LBL_EDIT_OPT_OUT_}</slot></td>
<td width="35%" ><slot>&nbsp;</slot></td>
</tr>
<tr>
<td scope="row"><slot>{$MOD.LBL_EDIT_TRACKER_URL}&nbsp;<span class="required"></span></slot></td>
<td colspan=3><slot><input type="text" size="80" maxlength='255' tabindex='3' {$TRACKER_URL_DISABLED} name="tracker_url" title="{$MOD.LBL_EDIT_TRACKER_URL}" id="tracker_url" value="http://"></slot> <input type='button' value ='{$MOD.LBL_ADD_TRACKER}' class= 'button' onclick='javascript:add_tracker();'></td>
</tr>
<tr><td colspan='4'>&nbsp;</td></tr>
</table>
</div>
<table width='100%' border="0" cellspacing="0" cellpadding="0">
<tr><td>{$MOD.LBL_TRACKERS_ADDED}</td></tr>
<tr><td class='list view'>
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr >
<td width='15%' scope="col" nowrap>{$MOD.LBL_EDIT_OPT_OUT}</td>
<td width='40%' scope="col">{$MOD.LBL_EDIT_TRACKER_NAME}</td>
<td width='45%' scope="col" colspan="2">{$MOD.LBL_EDIT_TRACKER_URL}</td>
</tr>
</table>
<div id='added_trackers'>
{$EXISTING_TRACKERS}
</div>
</td></tr>
</table>
<p>
<script>
var image_path = '{$IMAGE_PATH}';
{literal}
//this function toggles the tracker values based on whether the opt out check box is selected
function toggle_tracker_url(isoptout) {
tracker_url = document.getElementById('tracker_url');
if (isoptout.checked) {
tracker_url.disabled=true;
tracker_url.value="index.php?entryPoint=removeme";
} else {
tracker_url.disabled=false;
}
}
//create variables that will be used to monitor the number of tracker url
var trackers_added = 0;
//variable that will be passed back to server to specify list of trackers
var list_of_trackers_array = new Array();
//this function adds selected tracker to list
function add_tracker(){
//perform validation
if(validate_step3()){
//increment tracker count value
trackers_added++;
document.getElementById('added_tracker_count').value = trackers_added ;
//get the appropriate values from tracker form
var trkr_name = document.getElementById('tracker_name');
var trkr_url = document.getElementById('tracker_url');
var trkr_opt = document.getElementById('is_optout');
var trkr_opt_checked = '';
if(trkr_opt.checked){trkr_opt_checked = 'checked'; }
{/literal}
//construct html to display chosen tracker
var trkr_name_html = "<input id='tracker_name"+trackers_added +"' type='text' size='20' maxlength='255' name='wiz_step3_tracker_name"+trackers_added+"' title='{$MOD.LBL_EDIT_TRACKER_NAME}"+trackers_added+"' value='"+trkr_name.value+"' >";
var trkr_url_html = "<input type='text' size='60' maxlength='255' name='wiz_step3_tracker_url"+trackers_added+"' title='{$MOD.LBL_EDIT_TRACKER_URL}"+trackers_added+"' id='tracker_url"+trackers_added+"' value='"+trkr_url.value+"' >";
var trkr_opt_html = "<input name='wiz_step3_is_optout"+trackers_added+"' title='{$MOD.LBL_EDIT_OPT_OUT}"+trackers_added+"' id='is_optout"+trackers_added+"' class='checkbox' type='checkbox' "+trkr_opt_checked+" />";
//display the html
var trkr_html = "<div id='trkr_added_"+trackers_added+"'> <table width='100%' border='0' cellspacing='0' cellpadding='0'><tr class='evenListRowS1'><td width='15%'>"+trkr_opt_html+"</td><td width='40%'>"+trkr_name_html+"</td><td width='40%'>"+trkr_url_html+"</td><td><a href='#' onclick=\"javascript:remove_tracker('trkr_added_"+trackers_added+"','"+trackers_added+"'); \" > <img src='{sugar_getimagepath file='delete_inline.gif'}' alt='rem' align='absmiddle' border='0' height='12' width='12'>{$MOD.LBL_REMOVE}</a></td></tr></table></div>";
document.getElementById('added_trackers').innerHTML = document.getElementById('added_trackers').innerHTML + trkr_html;
//add values to array in string, seperated by "@@" characters
list_of_trackers_array[trackers_added] = trkr_name.value+"@@"+trkr_opt.checked+"@@"+trkr_url.value;
//assign array to hidden input, which will be used by server to process array of trackers
document.getElementById('wiz_list_of_trackers').value = list_of_trackers_array.toString();
//now lets clear the form to allow input of new tracker
trkr_name.value = '';
trkr_url.disabled = false;
trkr_url.value = 'http://';
trkr_opt.checked = false;
{literal}
if(trackers_added ==1){
document.getElementById('no_trackers').style.display='none';
}
}
}
//this function will remove the selected tracker from the ui, and from the tracker array
function remove_tracker(div,num){
//clear UI
var trkr_div = document.getElementById(div);
trkr_div.style.display = 'none';
trkr_div.parentNode.removeChild(trkr_div);
//clear tracker array from this entry and assign to form input
list_of_trackers_array[num] = '';
document.getElementById('wiz_list_of_trackers').value = list_of_trackers_array.toString();
}
//this function will remove the existing tracker from the ui, and add it's value to an array for removal upon save
function remove_existing_tracker(div,id){
//clear UI
var trkr_div = document.getElementById(div);
trkr_div.style.display = 'none';
trkr_div.parentNode.removeChild(trkr_div);
//assign this id to form input for removal
document.getElementById('wiz_remove_tracker_list').value += ','+id;
}
/**
*This function will iterate through list of trackers and gather all the values. It will
*populate these values, seperated by delimiters into hidden inputs for processing
*/
function gatherTrackers(){
//start with the newly added trackers, get count of total added
count = parseInt(trackers_added);
final_list_of_trackers_array = new Array();
//iterate through list of added trackers
for(i=1;i<=count;i++){
//make sure all values exist
if( document.getElementById('tracker_name'+i) && document.getElementById('is_optout'+i) && document.getElementById('tracker_url'+i) ){
//make sure the check box value is int (0/1)
var opt_val = '0';
if(document.getElementById('is_optout'+i).checked){opt_val =1;}
//add values for this tracker entry into array of tracker entries
final_list_of_trackers_array[i] = document.getElementById('tracker_name'+i).value+"@@"+opt_val+"@@"+document.getElementById('tracker_url'+i).value;
}
}
//assign array of tracker entries to hidden input, which will be used by server to process array of trackers
document.getElementById('wiz_list_of_trackers').value = final_list_of_trackers_array.toString();
//Now lets process existing trackers, get count of existing trackers
count = parseInt(document.getElementById('existing_tracker_count').value);
final_list_of_existing_trackers_array = new Array();
//iterate through list of existing trackers
for(i=0;i<count;i++){
//make sure all values exist
if( document.getElementById('existing_tracker_name'+i) && document.getElementById('existing_is_optout'+i) && document.getElementById('existing_tracker_url'+i) ){
//make sure the check box value is int (0/1)
var opt_val = '0';
if(document.getElementById('existing_is_optout'+i).checked){opt_val =1;}
//add values for this tracker entry into array of tracker entries
final_list_of_existing_trackers_array[i] = document.getElementById('existing_tracker_id'+i).value+"@@"+document.getElementById('existing_tracker_name'+i).value+"@@"+opt_val+"@@"+document.getElementById('existing_tracker_url'+i).value;
}
}
//assign array of tracker entries to hidden input, which will be used by server to process array of trackers
document.getElementById('wiz_list_of_existing_trackers').value = final_list_of_existing_trackers_array.toString();
}
/*
* this is the custom validation script that will validate the fields on step3 of wizard
* this is called directly from the add tracker button
*/
function validate_step3(){
requiredTxt = SUGAR.language.get('app_strings', 'ERR_MISSING_REQUIRED_FIELDS');
var stepname = 'wiz_step3_';
var has_error = 0;
var fields = new Array();
fields[0] = 'tracker_name';
fields[1] = 'tracker_url';
//loop through and check for empty strings (' ')
var field_value = '';
if(
(trim(document.getElementById(fields[0]).value) !='')
|| ((trim(document.getElementById(fields[1]).value) !='')
&& (trim(document.getElementById(fields[1]).value) !='http://'))
){
for (i=0; i < fields.length; i++){
field_value = trim(document.getElementById(fields[i]).value);
if(field_value.length<1 || field_value == 'http://'){
add_error_style('wizform', fields[i], requiredTxt +' ' +document.getElementById(fields[i]).title );
has_error = 1;
}
}
}else{
//no values have been entered, return false without error
return false;
}
//error has been thrown, return false
if(has_error == 1){
return false;
}
//add fields to validation and call generic validation script
if(validate['wizform']!='undefined'){delete validate['wizform']};
addToValidate('wizform', 'tracker_name', 'alphanumeric', false, document.getElementById('tracker_name').title);
addToValidate('wizform', 'tracker_url', 'alphanumeric', false, document.getElementById('tracker_url').title);
return check_form('wizform');
}
</script>
{/literal}

View 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".
********************************************************************************/
/*********************************************************************************
********************************************************************************/
*}
<div id='wiz_stage'>
<form id="wizform" name="wizform" method="POST" action="index.php">
<input type="hidden" name="module" value="Campaigns">
<input type="hidden" id='action' name="action" value='WizardNewsletter'>
<input type="hidden" id="return_module" name="return_module" value="Campaigns">
<input type="hidden" id="return_action" name="return_action" value="WizardHome">
<table class='other view' cellspacing="1">
<tr>
<td rowspan='2' width="10%" scope="row" style="vertical-align: top;">
<p>
<div id='nav'>
<table border="0" cellspacing="0" cellpadding="0" width="100%" >
<tr><td scope='row' ><div id='nav_step1'>{$MOD.LBL_CHOOSE_CAMPAIGN_TYPE}</div></td></tr>
</table>
</div>
</p>
</td>
<td rowspan='2' width='100%' class='edit view'>
<div id="wiz_message"></div>
<div id=wizard>
<div id='step1' >
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><th colspan='2' align="left" ><h4>{$MOD.LBL_CHOOSE_CAMPAIGN_TYPE}</h4></th></tr>
<tr><td colspan='2' ><p>{$MOD.LBL_HOME_START_MESSAGE}</p></td></tr>
<tr><td width='2%'>&nbsp;</td>
<td >
<input type="radio" id="wizardtype" name="wizardtype" value='1'checked >{$MOD.LBL_NEWSLETTER}<br>
<input type="radio" id="wizardtype" name="wizardtype" value='2'>{$MOD.LBL_EMAIL}<br>
<input type="radio" id="wizardtype" name='wizardtype' value='3'>{$MOD.LBL_OTHER_TYPE_CAMPAIGN}<br>
</td></tr>
</table>
</div>
</p>
</td>
</tr>
</table>
<div id ='buttons' >
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td align="right" width='40%'>&nbsp;</td>
<td align="right" width='30%'>
<table><tr>
<td><div id="start_button_div"><input id="startbutton" type='submit' title="{$MOD.LBL_START}" class="button" name="{$MOD.LBL_START}" value="{$MOD.LBL_START}"></div></td>
</tr></table>
</td>
</tr>
</table>
</div>
</form>
<script>
document.getElementById('startbutton').focus=true;
</script>
</div>

View File

@@ -0,0 +1,108 @@
{*
/*********************************************************************************
* 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".
********************************************************************************/
/*********************************************************************************
********************************************************************************/
*}
{$ROLLOVERSTYLE}
<form id="wizform" name="wizform" method="POST" action="index.php">
<input type="hidden" name="module" value="Campaigns">
<input type="hidden" name="record" value="{$ID}">
<input type="hidden" id="action" name="action">
<input type="hidden" name="return_module" value="{$RETURN_MODULE}">
<input type="hidden" name="return_id" value="{$RETURN_ID}">
<input type="hidden" name="return_action" value="{$RETURN_ACTION}">
<input type='hidden' name='campaign_type' value="{$MOD.LBL_NEWSLETTER_FORENTRY}">
<input type="hidden" id="wiz_total_steps" name="totalsteps" value="{$TOTAL_STEPS}">
<input type="hidden" id="wiz_current_step" name="currentstep" value='1'>
<input type="hidden" id="direction" name="wiz_direction" value='exit'>
<p>
<div id ='buttons'>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td align="left" width='30%'>
<table border="0" cellspacing="0" cellpadding="0" ><tr>
<td><div id="back_button_div"><input id="wiz_back_button" type='button' title="{$APP.LBL_BACK}" class="button" onclick="javascript:navigate('back');" name="back" value=" {$APP.LBL_BACK}"></div></td>
<td><div id="cancel_button_div"><input id="wiz_cancel_button" title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='WizardHome'; this.form.module.value='Campaigns'; this.form.record.value='{$RETURN_ID}';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"></div></td>
<td nowrap="nowrap">
<div id="save_button_div">
<input id="wiz_submit_button" class="button" onclick="this.form.action.value='WizardNewsletterSave';this.form.direction.value='continue';gatherTrackers();" accesKey="{$APP.LBL_SAVE_BUTTON_TITLE}" type="{$HIDE_CONTINUE}" name="button" value="{$MOD.LBL_SAVE_CONTINUE_BUTTON_LABEL}" ><input id="wiz_submit_finish_button" class="button" onclick="this.form.action.value='WizardNewsletterSave';this.form.direction.value='exit';gatherTrackers();" accesKey="{$APP.LBL_SAVE_BUTTON_TITLE}" type="submit" name="button" value="{$MOD.LBL_SAVE_EXIT_BUTTON_LABEL}" >
</div></td>
<td><div id="next_button_div"><input id="wiz_next_button" type='button' title="{$APP.LBL_NEXT_BUTTON_LABEL}" class="button" onclick="javascript:navigate('next');" name="button" value="{$APP.LBL_NEXT_BUTTON_LABEL}"></div></td>
</tr></table>
</td>
<td align="right" width='70%'><div id='wiz_location_message'></td>
</tr>
</table>
</div>
</p>
<table class='other view' cellspacing="1">
<tr>
<td scope='row' rowspan='2' width="10%" style="vertical-align: top;">
<div id='nav' >
{$NAV_ITEMS}
</div>
</td>
<td class='edit view' rowspan='2' width='100%'>
<div id="wiz_message"></div>
<div id=wizard>
{$STEPS}
</div>
</td>
</tr>
</table>
</form>
<script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={$SUGAR_VERSION}&c={$JS_CUSTOM_VERSION}"></script>
<script type="text/javascript" language="javascript" src="modules/Campaigns/wizard.js"></script>
<script type='text/javascript' src='include/javascript/sugar_grp_overlib.js'></script>
<div id='overDiv' style='position:absolute; visibility:hidden; z-index:1000;'></div>
{$WIZ_JAVASCRIPT}
{$DIV_JAVASCRIPT}
{$JAVASCRIPT}
<script language="javascript">
{$HILITE_ALL}
</script>

View File

@@ -0,0 +1,99 @@
{*
/*********************************************************************************
* 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="casesQuickCreate" id="casesQuickCreate" method="POST" action="index.php">
<input type="hidden" name="module" value="Cases">
<input type="hidden" name="contact_id" value="{$REQUEST.contact_id}">
<input type="hidden" name="contact_name" value="{$REQUEST.contact_name}">
<input type="hidden" name="email_id" value="{$REQUEST.email_id}">
<input type="hidden" name="bug_id" value="{$REQUEST.bug_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="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('CasesQuickCreate');\""} 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='Cases';" 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_CASE_INFORMATION}</slot></h4></th>
</tr>
<tr>
<td valign="top" scope="row"><slot>{$MOD.LBL_SUBJECT} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td><slot><textarea name='name' cols="50" tabindex='1' rows="1">{$NAME}</textarea></slot></td>
<td scope="row"><slot>{$MOD.LBL_PRIORITY}</slot></td>
<td nowrap><slot><select tabindex='2' name='priority'>{$PRIORITY_OPTIONS}</select></slot></td>
</tr>
<tr>
<td valign="top" scope="row" rowspan="2"><slot>{$MOD.LBL_DESCRIPTION}</slot></td>
<td rowspan="2"><slot><textarea name='description' tabindex='1' cols="50" rows="4">{$DESCRIPTION}</textarea></slot></td>
<td scope="row"><slot>{$MOD.LBL_STATUS}</slot></td>
<td><slot><select tabindex='2' name='status'>{$STATUS_OPTIONS}</select></slot></td>
</tr>
<tr>
{if $REQUEST.account_id != ''}
<td scope="row"><slot>{$MOD.LBL_ACCOUNT_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td ><slot>{$REQUEST.parent_name}<input id='account_name' name='account_name' type="hidden" value='{$REQUEST.parent_name}'><input id='account_id' name='account_id' type="hidden" value='{$REQUEST.parent_id}'>&nbsp;</slot></td>
{else}
<td scope="row"><slot>{$MOD.LBL_ACCOUNT_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td ><slot><input class="sqsEnabled" tabindex="1" autocomplete="off" id="account_name" name='account_name' type="text" value="{$ACCOUNT_NAME}">
<input name='account_id' id="account_id" type="hidden" value='{$ACCOUNT_ID}' />&nbsp;<input tabindex='1' title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" type="button" class="button" value='{$APP.LBL_SELECT_BUTTON_LABEL}' name="btn1"
onclick='open_popup("Accounts", 600, 400, "", true, false, {$encoded_popup_request_data}, "", true);' /></slot></td>
{/if}
</tr>
</table>
</form>
<script>
{$additionalScripts}
</script>

View File

@@ -0,0 +1,70 @@
{*
/**
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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".
*/
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_CAMPAIGN_NAME}</td>
<td valign='top' class='dataField'>
<select name="campaign_id" size='5'>
{$campaign_list}
</select>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='{$LBL_SUBMIT_BUTTON_LABEL}'>
</td>
</tr>
</table>
</form>
</div>

View File

@@ -0,0 +1,145 @@
{*
/**
* 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".
*/
// $Id$
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TITLE} <br /></td>
<td valign='top' class='dataField'>
<input type="text" value="{$dashlet_title}" size="30" name="pbuts_dashlet_title"/>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_ECMCALLS_DATE} <br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date" size='12' maxlength='10' id='pbuts_date' value='{$pbuts_date}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="pbuts_date_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_ECMCALLS_DATE_SELECT}</td>
<td valign='top' class='dataField'>
<select name="pbuts_date_select">
{$pbuts_date_select_options}
</select>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_ECMCALLS_TIME_FROM}</td>
<td valign='top' class='dataField'>
<select name="pbuts_time_from">
{$pbuts_time_from_options}
</select>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_ECMCALLS_TIME_TO}</td>
<td valign='top' class='dataField'>
<select name="pbuts_time_to">
{$pbuts_time_to_options}
</select>
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_ECMCALLS_SHOW_NUMBERS}</td>
<td valign='top' class='dataField'>
<input type="checkbox" name="pbuts_show_numbers" {$pbuts_show_numbers}/>
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_ECMCALLS_USERS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_users[]" multiple size='4'>
{$selected_datax_users}
</select><br /><br />
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_ECMCALLS_TYPE}</td>
<td valign='top' class='dataField'>
<select name="pbuts_type">
{$selected_datax_type}
</select>
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_ECMCALLS_WATCH}</td>
<td valign='top' class='dataField'>
<select name="pbuts_watch">
{$pbuts_watch}
</select>
&nbsp;>&nbsp;
<select name="pbuts_watch_seconds">
{$pbuts_watch_seconds}
</select>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='Submit'>
</td>
</tr>
</table>
</form>
{literal}
<script type="text/javascript">
Calendar.setup ({
inputField : "pbuts_date", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "pbuts_date_trigger", singleClick : true, step : 1
});
{/literal}
</script>
</div>

View File

@@ -0,0 +1,109 @@
{*
/**
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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".
*/
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TITLE} <br /></td>
<td valign='top' class='dataField'>
<input type="text" value="{$dashlet_title}" size="30" name="mypbss_dashlet_title"/>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_START} <br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="mypbss_date_start" size='12' maxlength='10' id='date_start' value='{$date_start}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_start_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_END}<br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="mypbss_date_end" size='12' maxlength='10' id='date_end' value='{$date_end}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_end_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_SALES_STAGES}</td>
<td valign='top' class='dataField'>
<select name="mypbss_sales_stages[]" multiple size='3'>
{$selected_datax}
</select></td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='{$LBL_SUBMIT_BUTTON_LABEL}'>
</td>
</tr>
</table>
</form>
{literal}
<script type="text/javascript">
Calendar.setup ({
inputField : "date_start", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_start_trigger", singleClick : true, step : 1
});
Calendar.setup ({
inputField : "date_end", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_end_trigger", singleClick : true, step : 1
});
{/literal}
</script>
</div>

View File

@@ -0,0 +1,78 @@
{*
/**
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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".
*/
*}
<div style='width: 400px'>
<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 width="400" cellpadding="10" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_LEAD_SOURCES}</td>
<td valign='top' class='dataField'>
<select name="lsbo_lead_sources[]" multiple size='3'>
{$selected_datax}
</select>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_USERS}</td>
<td valign='top' class='dataField'>
<select name="lsbo_ids[]" multiple size='3'>
{$lsbo_ids}
</select>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='{$LBL_SUBMIT_BUTTON_LABEL}'>
</td>
</tr>
</table>
</form>
</div>

View File

@@ -0,0 +1,78 @@
{*
/**
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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".
*/
*}
<div style='width: 400px'>
<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 width="400" cellpadding="10" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_LEAD_SOURCES}</td>
<td valign='top' class='dataField'>
<select name="pbls_lead_sources[]" multiple size='3'>
{$selected_datax}
</select>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_USERS}</td>
<td valign='top' class='dataField'>
<select name="pbls_ids[]" multiple size='3'>
{$pbls_ids}
</select>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='{$LBL_SUBMIT_BUTTON_LABEL}'>
</td>
</tr>
</table>
</form>
</div>

View File

@@ -0,0 +1,99 @@
{*
/**
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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".
*/
// $Id$
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TITLE} <br /></td>
<td valign='top' class='dataField'>
<input type="text" value="{$dashlet_title}" size="30" name="obm_dashlet_title"/>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_START} <br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="obm_date_start" size='12' maxlength='10' id='date_start' value='{$date_start}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_start_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_END}<br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="obm_date_end" size='12' maxlength='10' id='date_end' value='{$date_end}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_end_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_USERS}</td>
<td valign='top' class='dataField'>
<select name="obm_ids[]" multiple size='3'>
{$obm_ids}
</select>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='{$LBL_SUBMIT_BUTTON_LABEL}'>
</td>
</tr>
</table>
</form>
{literal}
<script type="text/javascript">
Calendar.setup ({
inputField : "date_start", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_start_trigger", singleClick : true, step : 1
});
Calendar.setup ({
inputField : "date_end", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_end_trigger", singleClick : true, step : 1
});
{/literal}
</script>
</div>

View File

@@ -0,0 +1,115 @@
{*
/**
* 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".
*/
// $Id$
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TITLE} <br /></td>
<td valign='top' class='dataField'>
<input type="text" value="{$dashlet_title}" size="30" name="pbuts_dashlet_title"/>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_START} <br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date_start" size='12' maxlength='10' id='date_start' value='{$date_start}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_start_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_END}<br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date_end" size='12' maxlength='10' id='date_end' value='{$date_end}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_end_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_ECMINVOICEOUT_STATUS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_ecminvoiceout_status[]" multiple size='3'>
{$selected_datax}
</select><br /><br /></td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_ECMINVOICEOUT_USERS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_ecminvoiceout_users[]" multiple size='4'>
{$selected_datax_users}
</select></td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='Submit'>
</td>
</tr>
</table>
</form>
{literal}
<script type="text/javascript">
Calendar.setup ({
inputField : "date_start", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_start_trigger", singleClick : true, step : 1
});
Calendar.setup ({
inputField : "date_end", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_end_trigger", singleClick : true, step : 1
});
{/literal}
</script>
</div>

View File

@@ -0,0 +1,115 @@
{*
/**
* 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".
*/
// $Id$
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TITLE} <br /></td>
<td valign='top' class='dataField'>
<input type="text" value="{$dashlet_title}" size="30" name="pbuts_dashlet_title"/>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_START} <br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date_start" size='12' maxlength='10' id='date_start' value='{$date_start}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_start_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_END}<br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date_end" size='12' maxlength='10' id='date_end' value='{$date_end}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_end_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_ECMQUOTE_STATUS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_ecmquote_status[]" multiple size='3'>
{$selected_datax}
</select><br /><br /></td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_ECMQUOTE_USERS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_ecmquote_users[]" multiple size='4'>
{$selected_datax_users}
</select></td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='Submit'>
</td>
</tr>
</table>
</form>
{literal}
<script type="text/javascript">
Calendar.setup ({
inputField : "date_start", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_start_trigger", singleClick : true, step : 1
});
Calendar.setup ({
inputField : "date_end", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_end_trigger", singleClick : true, step : 1
});
{/literal}
</script>
</div>

View File

@@ -0,0 +1,109 @@
{*
/**
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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".
*/
// $Id$
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TITLE} <br /></td>
<td valign='top' class='dataField'>
<input type="text" value="{$dashlet_title}" size="30" name="pbss_dashlet_title"/>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_START} <br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbss_date_start" size='12' maxlength='10' id='date_start' value='{$date_start}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_start_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_END}<br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbss_date_end" size='12' maxlength='10' id='date_end' value='{$date_end}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_end_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_SALES_STAGES}</td>
<td valign='top' class='dataField'>
<select name="pbss_sales_stages[]" multiple size='3'>
{$selected_datax}
</select></td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='{$LBL_SUBMIT_BUTTON_LABEL}'>
</td>
</tr>
</table>
</form>
{literal}
<script type="text/javascript">
Calendar.setup ({
inputField : "date_start", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_start_trigger", singleClick : true, step : 1
});
Calendar.setup ({
inputField : "date_end", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_end_trigger", singleClick : true, step : 1
});
{/literal}
</script>
</div>

View File

@@ -0,0 +1,115 @@
{*
/**
* 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".
*/
// $Id$
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TITLE} <br /></td>
<td valign='top' class='dataField'>
<input type="text" value="{$dashlet_title}" size="30" name="pbuts_dashlet_title"/>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_START} <br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date_start" size='12' maxlength='10' id='date_start' value='{$date_start}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_start_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_END}<br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date_end" size='12' maxlength='10' id='date_end' value='{$date_end}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_end_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_BUG_STATUS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_bug_status[]" multiple size='3'>
{$selected_datax}
</select><br /><br /></td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_BUG_USERS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_bug_users[]" multiple size='4'>
{$selected_datax_users}
</select></td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='Submit'>
</td>
</tr>
</table>
</form>
{literal}
<script type="text/javascript">
Calendar.setup ({
inputField : "date_start", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_start_trigger", singleClick : true, step : 1
});
Calendar.setup ({
inputField : "date_end", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_end_trigger", singleClick : true, step : 1
});
{/literal}
</script>
</div>

View File

@@ -0,0 +1,115 @@
{*
/**
* 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".
*/
// $Id$
*}
<div style='width: 400px'>
<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 width="400" cellpadding="0" cellspacing="0" border="0" class="tabForm" align="center">
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TITLE} <br /></td>
<td valign='top' class='dataField'>
<input type="text" value="{$dashlet_title}" size="30" name="pbuts_dashlet_title"/>
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_START} <br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date_start" size='12' maxlength='10' id='date_start' value='{$date_start}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_start_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' nowrap class='dataLabel'>{$LBL_DATE_END}<br><i>{$user_date_format}</i></td>
<td valign='top' class='dataField'>
<input onblur="parseDate(this, '{$cal_dateformat}');" class="text" name="pbuts_date_end" size='12' maxlength='10' id='date_end' value='{$date_end}'>
<img src="themes/default/images/jscalendar.gif" alt="{$LBL_ENTER_DATE}" id="date_end_trigger" align="absmiddle">
</td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TASK_STATUS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_task_status[]" multiple size='3'>
{$selected_datax}
</select><br /><br /></td>
</tr>
<tr>
<td valign='top' class='dataLabel' nowrap>{$LBL_TASK_USERS}</td>
<td valign='top' class='dataField'>
<select name="pbuts_task_users[]" multiple size='4'>
{$selected_datax_users}
</select></td>
</tr>
<tr>
<td align="right" colspan="2">
<input type='submit' onclick="" class='button' value='Submit'>
</td>
</tr>
</table>
</form>
{literal}
<script type="text/javascript">
Calendar.setup ({
inputField : "date_start", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_start_trigger", singleClick : true, step : 1
});
Calendar.setup ({
inputField : "date_end", ifFormat : "{/literal}{$cal_dateformat}{literal}", showsTime : false, button : "date_end_trigger", singleClick : true, step : 1
});
{/literal}
</script>
</div>

View File

@@ -0,0 +1,44 @@
{*
/**
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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".
*/
// $Id$
*}
<script>
SUGAR.mySugar.addToChartsArray('{$chartName}', '{$chartXMLFile}', '100%', '480', '{$chartStyleCSS}', '{$chartColorsXML}', '{$chartStringsXML}');
</script>

View File

@@ -0,0 +1,497 @@
{*
/*********************************************************************************
* 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_grp_overlib.js'}'></script>
<form name="ConfigureSettings" enctype='multipart/form-data' method="POST" action="index.php" onSubmit="return (add_checks(document.ConfigureSettings) && check_form('ConfigureSettings'));">
<input type='hidden' name='action' value='SaveConfig'/>
<input type='hidden' name='module' value='Configurator'/>
<span class='error'>{$error.main}</span>
<table width="100%" cellpadding="0" cellspacing="1" border="0" class="actionsContainer">
<tr>
<td>
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" type="submit" name="save" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
&nbsp;<input title="{$MOD.LBL_SAVE_BUTTON_TITLE}" class="button" type="submit" name="restore" value=" {$MOD.LBL_RESTORE_BUTTON_LABEL} " >
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Administration&action=index'" class="button" type="button" name="cancel" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " > </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4"><h4>{$MOD.DEFAULT_SYSTEM_SETTINGS}</h4></th>
</tr>
<tr>
<td scope="row">{$MOD.LIST_ENTRIES_PER_LISTVIEW}: </td>
<td >
<input type='text' size='4' name='list_max_entries_per_page' value='{$config.list_max_entries_per_page}'>
</td>
<td scope="row">{$MOD.LIST_ENTRIES_PER_SUBPANEL}: </td>
<td >
<input type='text' size='4' name='list_max_entries_per_subpanel' value='{$config.list_max_entries_per_subpanel}'>
</td>
</tr>
<tr>
<td scope="row">{$MOD.LOCK_HOMEPAGE}: </td>
<td >
{if !empty($config.lock_homepage)}
{assign var='lock_homepage_checked' value='CHECKED'}
{else}
{assign var='lock_homepage_checked' value=''}
{/if}
<input type='hidden' name='lock_homepage' value='false'>
<input type='checkbox' name='lock_homepage' value='true' {$lock_homepage_checked}>
</td>
<td scope="row">{$MOD.LOCK_SUBPANELS}: </td>
<td >
{if !empty($config.lock_subpanels)}
{assign var='lock_subpanels_checked' value='CHECKED'}
{else}
{assign var='lock_subpanels_checked' value=''}
{/if}
<input type='hidden' name='lock_subpanels' value='false'>
<input type='checkbox' name='lock_subpanels' value='true' {$lock_subpanels_checked}>
</td>
</tr>
<tr>
<td scope="row" nowrap>{$MOD.MAX_DASHLETS}: </td>
<td>
<input type='text' size='4' name='max_dashlets_homepage' value='{$config.max_dashlets_homepage}'>
</td>
<td scope="row" nowrap>{$MOD.LBL_USE_REAL_NAMES}: &nbsp;{sugar_help text=$MOD.LBL_USE_REAL_NAMES_DESC}</td>
{if !empty($config.use_real_names)}
{assign var='use_real_names' value='CHECKED'}
{else}
{assign var='use_real_names' value=''}
{/if}
<td >
<input type='hidden' name='use_real_names' value='false'>
<input name='use_real_names' type="checkbox" value="true" {$use_real_names}>
</td>
</tr>
<tr>
<td scope="row">{$MOD.DISPLAY_RESPONSE_TIME}: </td>
{if !empty($config.calculate_response_time )}
{assign var='calculate_response_time_checked' value='CHECKED'}
{else}
{assign var='calculate_response_time_checked' value=''}
{/if}
<td ><input type='hidden' name='calculate_response_time' value='false'><input name='calculate_response_time' type="checkbox" value="true" {$calculate_response_time_checked}></td>
<td scope="row">{$MOD.LBL_MODULE_FAVICON} &nbsp;{sugar_help text=$MOD.LBL_MODULE_FAVICON_HELP} </td>
{if !empty($config.default_module_favicon)}
{assign var='default_module_favicon' value='CHECKED'}
{else}
{assign var='default_module_favicon' value=''}
{/if}
<td >
<input type='hidden' name='default_module_favicon' value='false'>
<input name='default_module_favicon' type="checkbox" value="true" {$default_module_favicon}>
</td>
</tr>
<tr>
<td scope="row" width='15%' nowrap>{$MOD.SYSTEM_NAME} </td>
<td width='35%'>
<input type='text' name='system_name' value='{$settings.system_name}'>
</td>
</tr>
<tr>
<td scope="row" width='12%' nowrap>
{$MOD.CURRENT_LOGO}&nbsp;{sugar_help text=$MOD.CURRENT_LOGO_HELP}
</td>
<td width='35%' >
<img id="company_logo_image" src='{$company_logo}' height="40" width="212">
</td>
</tr>
<tr>
<td scope="row" width='12%' nowrap>
{$MOD.NEW_LOGO}:&nbsp{sugar_help text=$MOD.NEW_LOGO_HELP}
</td>
<td width='35%'>
<div id="container_upload"></div>
<input type='text' id='company_logo' name='company_logo' style="display:none">
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_PROXY_TITLE}</h4></th>
</tr>
<tr>
<td width="25%" scope="row" valign='middle'>{$MOD.LBL_PROXY_ON}&nbsp{sugar_help text=$MOD.LBL_PROXY_ON_DESC}</td>
{if !empty($settings.proxy_on)}
{assign var='proxy_on_checked' value='CHECKED'}
{else}
{assign var='proxy_on_checked' value=''}
{/if}
<td width="75%" align="left" valign='middle' colspan='3'><input type='hidden' name='proxy_on' value='0'><input name="proxy_on" value="1" class="checkbox" tabindex='1' type="checkbox" {$proxy_on_checked} onclick='toggleDisplay_2("proxy_config_display")'></td>
</tr><tr>
<td colspan="4">
<div id="proxy_config_display" style='display:{$PROXY_CONFIG_DISPLAY}'>
<table width="100%" cellpadding="0" cellspacing="1"><tr>
<td width="15%" scope="row">{$MOD.LBL_PROXY_HOST}<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
<td width="35%" ><input type="text" name="proxy_host" size="25" value="{$settings.proxy_host}" tabindex='1' ></td>
<td width="15%" scope="row">{$MOD.LBL_PROXY_PORT}<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
<td width="35%" ><input type="text" name="proxy_port" size="6" value="{$settings.proxy_port}" tabindex='1' ></td>
</tr><tr>
<td width="15%" scope="row" valign='middle'>{$MOD.LBL_PROXY_AUTH}</td>
{if !empty($settings.proxy_auth)}
{assign var='proxy_auth_checked' value='CHECKED'}
{else}
{assign var='proxy_auth_checked' value=''}
{/if}
<td width="35%" align="left" valign='middle' ><input type='hidden' name='proxy_auth' value='0'><input name="proxy_auth" value="1" class="checkbox" tabindex='1' type="checkbox" {$proxy_auth_checked} onclick='toggleDisplay_2("proxy_auth_display")'> </td>
</tr></table>
<div id="proxy_auth_display" style='display:{$PROXY_AUTH_DISPLAY}'>
<table width="100%" cellpadding="0" cellspacing="1"><tr>
<td width="15%" scope="row">{$MOD.LBL_PROXY_USERNAME}<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
<td width="35%" ><input type="text" name="proxy_username" size="25" value="{$settings.proxy_username}" tabindex='1' ></td>
<td width="15%" scope="row">{$MOD.LBL_PROXY_PASSWORD}<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></td>
<td width="35%" ><input type="password" name="proxy_password" size="25" value="{$settings.proxy_password}" tabindex='1' ></td>
</tr></table>
</div>
</div>
</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">{$MOD.LBL_ASTERISK_TITLE}</h4></th>
</tr><tr>
{if !empty($settings.system_asterisk_on)}
{assign var='system_asterisk_on_checked' value='CHECKED'}
{else}
{assign var='system_asterisk_on_checked' value=''}
{/if}
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_ON}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input type='hidden' name='system_asterisk_on' value='0'><input name="system_asterisk_on" value="1" class="checkbox" tabindex='1' type="checkbox" {$system_asterisk_on_checked}> <em>{$MOD.LBL_ASTERISK_ON_DESC}</em></td>
</tr><tr>
{if !empty($settings.system_asterisk_pro)}
{assign var='system_asterisk_pro_checked' value='CHECKED'}
{else}
{assign var='system_asterisk_pro_checked' value=''}
{/if}
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_PRO}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input type='hidden' name='system_asterisk_pro' value='0'><input name="system_asterisk_pro" value="1" class="checkbox" tabindex='1' type="checkbox" {$system_asterisk_pro_checked}> <em>{$MOD.LBL_ASTERISK_PRO_DESC}</em></td>
</tr><tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_SERVER}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_server" value="{$settings.system_asterisk_server}" class="text" tabindex='1' type="text"> <em>{$MOD.LBL_ASTERISK_SERVER_DESC}</em></td>
</tr><tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_PORT}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_port" value="{$settings.system_asterisk_port}" class="text" size="4" tabindex='1' type="text" > <em>{$MOD.LBL_ASTERISK_PORT_DESC}</em></td>
</tr><tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_USERNAME}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_username" value="{$settings.system_asterisk_username}" class="text" tabindex='1' type="text"> <em>{$MOD.LBL_ASTERISK_USERNAME_DESC}</em></td>
</tr><tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_SECRET}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_secret" value="{$settings.system_asterisk_secret}" class="text" tabindex='1' type="text" > <em>{$MOD.LBL_ASTERISK_SECRET_DESC}</em></td>
</tr><tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_INTERNAL_CONTEXT}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_internal_context" value="{$settings.system_asterisk_internal_context}" class="text" tabindex='1' type="text" > <em>{$MOD.LBL_ASTERISK_INTERNAL_CONTEXT_DESC}</em></td>
</tr><tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_EXTERNAL_CONTEXT}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_external_context" value="{$settings.system_asterisk_external_context}" class="text" tabindex='1' type="text" > <em>{$MOD.LBL_ASTERISK_EXTERNAL_CONTEXT_DESC}</em></td>
</tr><tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_AUTO_PICKUP}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_auto_pickup" value="{$settings.system_asterisk_auto_pickup}" class="text" size="4" tabindex='1' type="text"> <em>{$MOD.LBL_ASTERISK_AUTO_PICKUP_DESC}</em></td>
</tr><tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_PREFIX}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_prefix" value="{$settings.system_asterisk_prefix}" class="text" size="4" tabindex='1' type="text"> <em>{$MOD.LBL_ASTERISK_PREFIX_DESC}</em></td>
</tr>
<tr>
{if !empty($settings.system_asterisk_call_record)}
{assign var='system_asterisk_call_record_checked' value='CHECKED'}
{else}
{assign var='system_asterisk_call_record_checked' value=''}
{/if}
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_CALL_RECORD}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input type='hidden' name="system_asterisk_call_record" value='0'><input name="system_asterisk_call_record" value="1" class="checkbox" tabindex='1' type="checkbox" {$system_asterisk_call_record_checked} DISABLED> <em>{$MOD.LBL_ASTERISK_CALL_RECORD_DESC}</em></td>
</tr>
<tr>
{if !empty($settings.system_asterisk_phoneicon_on)}
{assign var='system_asterisk_phoneicon_on_checked' value='CHECKED'}
{else}
{assign var='system_asterisk_phoneicon_on_checked' value=''}
{/if}
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_PHONEICON_ON}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input type='hidden' name="system_asterisk_phoneicon_on" value='0'><input name="system_asterisk_phoneicon_on" value="1" class="checkbox" tabindex='1' type="checkbox" {$system_asterisk_phoneicon_on_checked}> <em>{$MOD.LBL_ASTERISK_PHONEICON_ON_DESC}</em></td>
</tr><!--<tr>
<td width="25%" class="dataLabel" valign='middle'>{$MOD.LBL_ASTERISK_POPUP_TIMER}</td>
<td width="75%" align="left" class="dataField" valign='middle'><input name="system_asterisk_popup_timer" value="{$settings.system_asterisk_popup_timer}" class="text" size="4" tabindex='1' type="text"> <em>{$MOD.LBL_ASTERISK_POPUP_TIMER_DESC}</em></td>
</tr>--><tr>
<td colspan="4">
<div id="portal_config">
<table width="100%" cellpadding="0" cellspacing="0"><tr>
<td width="15%" class="dataLabel"> </td>
<td width="35%" class="dataField"> </td>
</tr></table>
</div>
</td></tr></table>
</td></tr></table>
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_SKYPEOUT_TITLE}</h4></th>
</tr>
<tr>
<td width="25%" scope="row" valign='middle'>{$MOD.LBL_SKYPEOUT_ON}&nbsp{sugar_help text=$MOD.LBL_SKYPEOUT_ON_DESC WIDTH=400}</td>
{if !empty($settings.system_skypeout_on)}
{assign var='system_skypeout_on_checked' value='CHECKED'}
{else}
{assign var='system_skypeout_on_checked' value=''}
{/if}
<td width="75%" align="left" valign='middle'><input type='hidden' name='system_skypeout_on' value='0'><input name="system_skypeout_on" value="1" class="checkbox" tabindex='1' type="checkbox" {$system_skypeout_on_checked}></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4"><h4>{$MOD.LBL_MAILMERGE}</h4></th>
</tr>
<tr>
<td width="25%" scope="row" valign='middle'>{$MOD.LBL_ENABLE_MAILMERGE}&nbsp{sugar_help text=$MOD.LBL_MAILMERGE_DESC WIDTH=400}</td>
{if !empty($settings.system_mailmerge_on)}
{assign var='system_mailmerge_on_checked' value='CHECKED'}
{else}
{assign var='system_mailmerge_on_checked' value=''}
{/if}
<td width="75%" align="left" valign='middle'><input type='hidden' name='system_mailmerge_on' value='0'><input name="system_mailmerge_on" value="1" class="checkbox" type="checkbox" {$system_mailmerge_on_checked}></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4"><h4>{$MOD.ADVANCED}</h4></th>
</tr>
<tr>
<td scope="row">{$MOD.VERIFY_CLIENT_IP}: </td>
{if !empty($config.verify_client_ip)}
{assign var='verify_client_ip_checked' value='CHECKED'}
{else}
{assign var='verify_client_ip_checked' value=''}
{/if}
<td ><input type='hidden' name='verify_client_ip' value='false'><input name='verify_client_ip' type="checkbox" value="1" {$verify_client_ip_checked}></td>
<td scope="row">{$MOD.LOG_MEMORY_USAGE}: </td>
{if !empty($config.log_memory_usage)}
{assign var='log_memory_usage_checked' value='CHECKED'}
{else}
{assign var='log_memory_usage_checked' value=''}
{/if}
<td ><input type='hidden' name='log_memory_usage' value='false'><input name='log_memory_usage' type="checkbox" value='true' {$log_memory_usage_checked}></td>
</tr>
<tr>
<td scope="row">{$MOD.LOG_SLOW_QUERIES}: </td>
{if !empty($config.dump_slow_queries)}
{assign var='dump_slow_queries_checked' value='CHECKED'}
{else}
{assign var='dump_slow_queries_checked' value=''}
{/if}
<td ><input type='hidden' name='dump_slow_queries' value='false'><input name='dump_slow_queries' type="checkbox" value='true' {$dump_slow_queries_checked}></td>
<td scope="row">{$MOD.SLOW_QUERY_TIME_MSEC}: </td>
<td >
<input type='text' size='5' name='slow_query_time_msec' value='{$config.slow_query_time_msec}'>
</td>
</tr>
<tr>
<td scope="row">{$MOD.UPLOAD_MAX_SIZE}: </td>
<td >
<input type='text' size='8' name='upload_maxsize' value='{$config.upload_maxsize}'>
</td>
<td scope="row">{$MOD.STACK_TRACE_ERRORS}: </td>
{if !empty($config.stack_trace_errors)}
{assign var='stack_trace_errors_checked' value='CHECKED'}
{else}
{assign var='stack_trace_errors_checked' value=''}
{/if}
<td ><input type='hidden' name='stack_trace_errors' value='false'><input name='stack_trace_errors' type="checkbox" value='true' {$stack_trace_errors_checked}></td>
</tr>
<tr>
<td scope="row">{$MOD.DEVELOPER_MODE}: </td>
{if !empty($config.developerMode)}
{assign var='developerModeChecked' value='CHECKED'}
{else}
{assign var='developerModeChecked' value=''}
{/if}
<td ><input type='hidden' name='developerMode' value='false'><input name='developerMode' type="checkbox" value='true' {$developerModeChecked}></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_VCAL_PERIOD} {sugar_help text=$MOD.vCAL_HELP}</td>
<td >
<input type='text' size='4' name='vcal_time' value='{$config.vcal_time}'>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="6"><h4>{$MOD.LBL_LOGGER}</h4></th>
</tr>
<tr>
<td scope="row" valign='middle'>{$MOD.LBL_LOGGER_FILENAME}</td>
<td valign='middle' ><input type='text' name = 'logger_file_name' value="{$config.logger.file.name}"></td>
<td scope="row">{$MOD.LBL_LOGGER_FILE_EXTENSION}</td>
<td ><input name ="logger_file_ext" type="text" size="5" value="{$config.logger.file.ext}"></td>
<td scope="row">{$MOD.LBL_LOGGER_FILENAME_SUFFIX}</td>
<td ><select name = "logger_file_suffix" selected='{$config.logger.file.suffix}'>{$filename_suffix}</select></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_LOGGER_MAX_LOG_SIZE} </td>
<td > <input name="logger_file_maxSize" size="4" value="{$config.logger.file.maxSize}"></td>
<td scope="row">{$MOD.LBL_LOGGER_DEFAULT_DATE_FORMAT}</td>
<td ><input name ="logger_file_dateFormat" type="text" value="{$config.logger.file.dateFormat}"></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_LOGGER_LOG_LEVEL} </td>
<td > <select name="logger_level">{$log_levels}</select></td>
<td scope="row">{$MOD.LBL_LOGGER_MAX_LOGS} </td>
<td > <input name="logger_file_maxLogs" value="{$config.logger.file.maxLogs}"></td>
</tr>
<tr>
<td><a href="index.php?module=Configurator&action=LogView" target="_blank">{$MOD.LBL_LOGVIEW}</a></td>
</tr>
</table>
<div style="padding-top: 2px;">
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button primary" type="submit" name="save" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " class="button primary"/>
&nbsp;<input title="{$MOD.LBL_SAVE_BUTTON_TITLE}" class="button" type="submit" name="restore" value=" {$MOD.LBL_RESTORE_BUTTON_LABEL} " />
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Administration&action=index'" class="button" type="button" name="cancel" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " />
</div>
{$JAVASCRIPT}
<script>
addToValidate('ConfigureSettings', 'system_name', 'varchar', true,'System Name' );
addToValidateMoreThan('ConfigureSettings', 'list_max_entries_per_page', 'int', true, '', 1);
addToValidateMoreThan('ConfigureSettings', 'list_max_entries_per_subpanel', 'int', true, '', 1);
</script>
</form>
<div id='upload_panel' style="display:none">
<form id="upload_form" name="upload_form" method="POST" action='index.php' enctype="multipart/form-data">
<input type="file" id="my_file_company" name="file_1" size="20" onchange="uploadCheck(false)"/>
<img id="loading_img_company" alt="loading..." src="{sugar_getimagepath file='sqsWait.gif'}" style="display:none">
</form>
</div>
{literal}
<script type='text/javascript'>
function init_logo(){
document.getElementById('upload_panel').style.display="inline";
document.getElementById('upload_panel').style.position="absolute";
YAHOO.util.Dom.setX('upload_panel', YAHOO.util.Dom.getX('container_upload'));
YAHOO.util.Dom.setY('upload_panel', YAHOO.util.Dom.getY('container_upload')-5);
}
YAHOO.util.Event.onDOMReady(function(){
init_logo();
});
function toggleDisplay_2(div_string){
toggleDisplay(div_string);
init_logo();
}
function uploadCheck(quotes){
//AJAX call for checking the file size and comparing with php.ini settings.
var callback = {
upload:function(r) {
eval("var file_type = " + r.responseText);
var forQuotes = file_type['forQuotes'];
document.getElementById('loading_img_'+forQuotes).style.display="none";
bad_image = SUGAR.language.get('Configurator',(forQuotes == 'quotes')?'LBL_ALERT_TYPE_JPEG':'LBL_ALERT_TYPE_IMAGE');
switch(file_type['data']){
case 'other':
alert(bad_image);
document.getElementById('my_file_' + forQuotes).value='';
break;
case 'size':
alert(SUGAR.language.get('Configurator','LBL_ALERT_SIZE_RATIO'));
document.getElementById(forQuotes + "_logo").value=file_type['path'];
document.getElementById(forQuotes + "_logo_image").src=file_type['path'];
break;
case 'file_error':
alert(SUGAR.language.get('Configurator','ERR_ALERT_FILE_UPLOAD'));
document.getElementById('my_file_' + forQuotes).value='';
break;
//File good
case 'ok':
document.getElementById(forQuotes + "_logo").value=file_type['path'];
document.getElementById(forQuotes + "_logo_image").src=file_type['path'];
break;
//error in getimagesize because unsupported type
default:
alert(bad_image);
document.getElementById('my_file_' + forQuotes).value='';
}
},
failure:function(r){
alert(SUGAR.language.get('app_strings','LBL_AJAX_FAILURE'));
}
}
document.getElementById("company_logo").value='';
document.getElementById('loading_img_company').style.display="inline";
var file_name = document.getElementById('my_file_company').value;
postData = '&entryPoint=UploadFileCheck&forQuotes=false';
YAHOO.util.Connect.setForm(document.getElementById('upload_form'), true,true);
if(file_name){
if(postData.substring(0,1) == '&'){
postData=postData.substring(1);
}
YAHOO.util.Connect.asyncRequest('POST', 'index.php', callback, postData);
}
}
</script>
{/literal}

View File

@@ -0,0 +1,220 @@
{*
/*********************************************************************************
* 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='include/javascript/overlibmws.js'></script>
<script type='text/javascript'>var fileFields = new Array();</script>
<BR>
<form name="ConfigureSugarpdfSettings" enctype='multipart/form-data' method="POST" action="index.php?action=SugarpdfSettings&module=Configurator" onSubmit="if(checkFileType(null,1))return (check_form('ConfigureSugarpdfSettings'));else return false;">
<span class='error'>{$error}</span>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding-bottom: 2px;">
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" type="submit" name="save" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
&nbsp;<input title="{$MOD.LBL_RESTORE_BUTTON_LABEL}" class="button" type="submit" name="restore" value=" {$MOD.LBL_RESTORE_BUTTON_LABEL} " >
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Administration&action=index'" class="button" type="button" name="cancel" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " >
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view" {if $pdf_enable_ezpdf=="0"}style="display:none"{/if}>
<tr>
<td scope="row" style="text-align: center;">{html_radios name="sugarpdf_pdf_class" options=$pdf_class selected=$selected_pdf_class separator=' ' onchange='processPDFClass()'}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view" id="settingsForTCPDF">
<tr>
<th align="left" scope="row" colspan="4"><h4 >{$MOD.SUGARPDF_BASIC_SETTINGS}</h4></th>
</tr>
<tr>
<td scope="row">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
{counter start=0 assign='count'}
{foreach from=$SugarpdfSettings item=property key=name}
{if $property.class == "basic"}
{counter}
{include file="modules/Configurator/tpls/SugarpdfSettingsFields.tpl"}
{/if}
{/foreach}
{if $count is odd}
<td ></td>
<td ></td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4"><h4 >{$MOD.SUGARPDF_LOGO_SETTINGS}</h4></th>
</tr>
<tr>
<td scope="row">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
{counter start=0 assign='count'}
{foreach from=$SugarpdfSettings item=property key=name}
{if $property.class == "logo"}
{counter}
{include file="modules/Configurator/tpls/SugarpdfSettingsFields.tpl"}
{/if}
{/foreach}
{if $count is odd}
<td ></td>
<td ></td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
<!--
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr>
<th align="left" scope="row" colspan="4"><h4 >{$MOD.SUGARPDF_ADVANCED_SETTINGS}</h4></th>
</tr>
<tr>
<td scope="row" scope="row">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
{counter start=0 assign='count'}
{foreach from=$SugarpdfSettings item=property key=name}
{if $property.class == "advanced"}
{counter}
{include file="modules/Configurator/tpls/SugarpdfSettingsFields.tpl"}
{/if}
{/foreach}
{if $count is odd}
<td ></td>
<td ></td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
-->
</td>
</tr>
</table>
<div style="padding-top: 2px;">
<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" type="submit" name="save" value=" {$APP.LBL_SAVE_BUTTON_LABEL} " />
&nbsp;<input title="{$MOD.LBL_RESTORE_BUTTON_LABEL}" class="button" type="submit" name="restore" value=" {$MOD.LBL_RESTORE_BUTTON_LABEL} " >
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Administration&action=index'" class="button" type="button" name="cancel" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " />
</div>
{$JAVASCRIPT}
</form>
{literal}
<script type='text/javascript'>
function checkFileType(id, submit) {
if (submit == 0) {
var fileName = document.getElementById(id).value;
if ({/literal}{$GD_WARNING}{literal}==1 && (fileName.lastIndexOf(".png") != -1||
fileName.lastIndexOf(".PNG") != -1)) {
fileFields[id]=id;
//alert({/literal}SUGAR.language.get('Configurator', 'PDF_GD_WARNING'{literal}));
}
}
else if (submit == 1) {
for (fileField in fileFields) {
var fileName = document.getElementById(fileField).value;
if ({/literal}{$GD_WARNING}{literal}==1 && (fileName.lastIndexOf(".png") != -1||
fileName.lastIndexOf(".PNG") != -1)) {
//add_error_style('ConfigureSugarpdfSettings', fileField, SUGAR.language.get('Configurator', 'PDF_GD_WARNING'));
alert({/literal}SUGAR.language.get('Configurator', 'PDF_GD_WARNING'{literal}));
return false;
}
}
}
return true;
}
function verifyPercent(id){
var s = document.getElementById(id).value;
if(isInteger(s)){
if(inRange(s, 0, 100)){
return true;
}else{
document.getElementById(id).value = "";
return false;
}
}else{
document.getElementById(id).value = "";
return false;
}
}
function verifyNumber(id){
var s = document.getElementById(id).value;
if(isNumeric(s)){
return true;
}else{
document.getElementById(id).value = "";
return false;
}
}
function processPDFClass(){
document.getElementById('settingsForTCPDF').style.display="";
// document.getElementById('fontManager').style.display="";
if(!check_form('ConfigureSugarpdfSettings')){
for (var i = 0; i <document.ConfigureSugarpdfSettings.sugarpdf_pdf_class.length; i++) {
if(document.ConfigureSugarpdfSettings.sugarpdf_pdf_class[i].value == "TCPDF"){
document.ConfigureSugarpdfSettings.sugarpdf_pdf_class[i].checked=true;
}
}
}else{
var chosen = "";
for (var i = 0; i <document.ConfigureSugarpdfSettings.sugarpdf_pdf_class.length; i++) {
if (document.ConfigureSugarpdfSettings.sugarpdf_pdf_class[i].checked) {
chosen = document.ConfigureSugarpdfSettings.sugarpdf_pdf_class[i].value;
}
}
if(chosen == "EZPDF"){
document.getElementById('settingsForTCPDF').style.display="none";
//document.getElementById('fontManager').style.display="none";
}
}
}
processPDFClass();
</script>
{/literal}

View File

@@ -0,0 +1,95 @@
{*
/*********************************************************************************
* 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 $property.type == "image"}
{if $count is not odd}</tr>{/if}
<tr>
<td scope="row" width="20%">{$property.label}:<span class="error" id="resized_{$name}_img" style="display:none"> {$MOD.LBL_IMG_RESIZED}</span>{sugar_help text=$property.info_label} </td>
<td colspan="3">
<img src='{$property.path}' id='{$name}_img' style='margin-bottom: 10px;'>
<input type='hidden' id='{$name}' name='{$name}' value='{$property.value}'>
<script type='text/javascript'>
{literal}
YAHOO.util.Event.onDOMReady(function() {
if(document.getElementById({/literal}"{$name}_img"{literal}).width>document.width/2){
document.getElementById({/literal}"{$name}_img"{literal}).width = document.width/2;
document.getElementById({/literal}"resized_{$name}_img"{literal}).style.display="";
}
});
{/literal}
</script>
</td>
</tr>
{counter}
{else}
{if $count is odd}
<tr>
{/if}
<td scope="row" width="20%">{$property.label}:{if isset($property.required) && $property.required == true} <span class="required">*</span>{/if}{sugar_help text=$property.info_label} </td>
<td width="30%">
{if isset($property.custom)}
{$property.custom}
{elseif $property.type == "text"}
<input type='text' size='40' name='{$name}' id='{$name}' value='{$property.value}'>
{elseif $property.type == "number"}
<input type='text' size='10' name='{$name}' id='{$name}' value='{$property.value}' onchange="verifyNumber('{$name}')">
{if isset($property.unit)}
{$property.unit}
{/if}
{elseif $property.type == "percent"}
<input type='text' size='20' name='{$name}' id='{$name}' value='{$property.value}' onchange="verifyPercent('{$name}')">
{elseif $property.type == "select"}
{html_options name=$name options=$property.selectList selected=$property.value}
{elseif $property.type == "multiselect"}
<select name='{$name}[]' multiple size=4>
{html_options options=$property.selectList selected=$property.value}
</select>
{elseif $property.type == "bool"}
<input type="hidden" name='{$name}' value='false'>
<input type='checkbox' name='{$name}' value='true' id='{$name}' {if $property.value == "true"}CHECKED{/if}>
{elseif $property.type == "password"}
<input type='password' size='20' name='{$name}' id='{$name}' value='{$property.value}'>
{elseif $property.type == "file"}
<input type="file" id='{$name}' name='{$name}' size="20" onBlur="checkFileType('{$name}',0);"/>
{/if}
</td>
{if $count is not odd}
</tr>
{/if}
{/if}

View 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".
********************************************************************************/
*}
<p>
{$MODULE_TITLE}
</p>
<form name="addFontResult" method="POST" action="index.php" id="addFontResult">
<input type="hidden" name="module" value="Configurator">
<input type="hidden" name="action" value="FontManager">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding-bottom: 2px;">
<input title="{$MOD.LBL_FONTMANAGER_TITLE}" class="button" type="submit" name="back" value=" {$MOD.LBL_FONTMANAGER_BUTTON} " >
</td>
</tr>
</table>
<br>
<div>{if isset($error)}<span class='error'><b>{$MOD.LBL_STATUS_FONT_ERROR}</b></span>{else}<b>{$MOD.LBL_STATUS_FONT_SUCCESS}</b>{/if}</div>
<span class='error'><pre>{$error}</pre></span>
<pre>{$info}</pre>
</form>

View File

@@ -0,0 +1,165 @@
{*
/*********************************************************************************
* 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='include/javascript/overlibmws.js'></script>
<p>
{$MODULE_TITLE}
</p>
<form name="addFontView" enctype='multipart/form-data' method="POST" action="index.php?action=addFont&module=Configurator" onSubmit="return (check_form('addFontView'));">
<span class='error'>{$error}</span>
<br>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding-bottom: 2px;">
<input title="{$MOD.LBL_ADD_FONT_BUTTON}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" type="submit" name="save" value=" {$MOD.LBL_ADD_FONT_BUTTON} " >
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Configurator&action=FontManager'" class="button" type="button" name="cancel" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " >
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr>
<td scope="row">{$MOD.LBL_PDF_METRIC_FILE}: <span class="required">*</span>{sugar_help text=$MOD.LBL_PDF_METRIC_FILE_INFO} </td>
<td>
<input type='file' size='30' name='pdf_metric_file' id='pdf_metric_file'>
</td>
<td scope="row"></td>
<td></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_PDF_FONT_FILE}: <span class="required">*</span>{sugar_help text=$MOD.LBL_PDF_FONT_FILE_INFO} </td>
<td>
<input type='file' size='30' name='pdf_font_file' id='pdf_font_file'>
</td>
<td scope="row"></td>
<td></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_FONT_LIST_EMBEDDED}: <span class="required">*</span>{sugar_help text=$MOD.LBL_FONT_LIST_EMBEDDED_INFO} </td>
<td>
<input type="hidden" name='pdf_embedded' value='false'>
<input type='checkbox' name='pdf_embedded' value='true' id='pdf_embedded' onchange="showCidInfo()" CHECKED>
</td>
<td scope="row"></td>
<td></td>
</tr>
<tr id="cidInfo" style="display:none">
<td scope="row">{$MOD.LBL_FONT_LIST_CIDINFO}: <span class="required">*</span>{sugar_help text=$MOD.LBL_FONT_LIST_CIDINFO_INFO} </td>
<td>
<textarea name='pdf_cidinfo' rows="4" cols="80" id="pdf_cidinfo"></textarea>
</td>
<td scope="row"></td>
<td></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_PDF_ENCODING_TABLE}: <span class="required">*</span>{sugar_help text=$MOD.LBL_PDF_ENCODING_TABLE_INFO} </td>
<td>
{html_options name="pdf_encoding_table" options=$ENCODING_TABLE}
</td>
<td scope="row"></td>
<td></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_PDF_PATCH}:{sugar_help text=$MOD.LBL_PDF_PATCH_INFO} </td>
<td>
<textarea size='60' name='pdf_patch' id='pdf_patch' rows="4" cols="80"></textarea>
</td>
<td scope="row"></td>
<td></td>
</tr>
<tr>
<td scope="row">{$MOD.LBL_FONT_LIST_STYLE}: <span class="required">*</span>{sugar_help text=$MOD.LBL_FONT_LIST_STYLE_INFO} </td>
<td>
{html_options name="pdf_style_list" options=$STYLE_LIST}
</td>
<td scope="row"></td>
<td></td>
</tr>
</table>
<br>
<div style="padding-top: 2px;">
<input title="{$MOD.LBL_ADD_FONT_BUTTON}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" type="submit" name="save" value=" {$MOD.LBL_ADD_FONT_BUTTON} " >
&nbsp;<input title="{$MOD.LBL_CANCEL_BUTTON_TITLE}" onclick="document.location.href='index.php?module=Configurator&action=FontManager'" class="button" type="button" name="cancel" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " />
</div>
</form>
{literal}
<script type='text/javascript'>
function checkFileExtension(metric){
if(metric){
var element = document.getElementById("pdf_metric_file");
}else{
var element = document.getElementById("pdf_font_file");
}
if(element.value != ""){
var error=true;
var filename = element.value;
var dot = filename.lastIndexOf(".");
if( dot != -1 ){
var extension = filename.substr(dot,filename.length);
if(!metric){
if(extension==".ttf" || extension==".otf" || extension==".pfb") error=false;
}else{
if(extension==".afm" || extension==".ufm") error=false;
}
}
if(error){
element.value="";
{/literal}
alert("{$MOD.JS_ALERT_PDF_WRONG_EXTENSION}");
{literal}
}
}
}
function showCidInfo(){
if(document.getElementById("pdf_embedded").checked == false){
document.getElementById("cidInfo").style.display = "";
addToValidate('addFontView', 'pdf_cidinfo', 'varchar', 1,'{/literal}{$MOD.LBL_FONT_LIST_CIDINFO}{literal}' );
}else{
document.getElementById("cidInfo").style.display = "none";
removeFromValidate('addFontView', 'pdf_cidinfo');
}
}
document.getElementById('pdf_metric_file').onchange=function(){checkFileExtension(true);};
document.getElementById('pdf_font_file').onchange=function(){checkFileExtension(false);};
{/literal}
addToValidate('addFontView', 'pdf_metric_file', 'varchar', 1,'{$MOD.LBL_PDF_METRIC_FILE}' );
addToValidate('addFontView', 'pdf_font_file', 'varchar', 1,'{$MOD.LBL_PDF_FONT_FILE}' );
showCidInfo();
</script>

View File

@@ -0,0 +1,725 @@
{*
/*********************************************************************************
* 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".
********************************************************************************/
*}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="SHORTCUT ICON" href="{$FAVICON_URL}">
<meta http-equiv="Content-Type" content="text/html; charset={$APP.LBL_CHARSET}">
<title>{$MOD.LBL_WIZARD_TITLE}</title>
{$SUGAR_JS}
{$SUGAR_CSS}
{$CSS}
{overlib_includes}
</head>
{literal}
<script type='text/javascript'>
function disableReturnSubmission(e) {
var key = window.event ? window.event.keyCode : e.which;
return (key != 13);
}
</script>
{/literal}
<body class="yui-skin-sam">
<div id="main">
<div id="content">
<table style="width:auto;height:600px;" align="center"><tr><td align="center">
<form name="AdminWizard" id="AdminWizard" enctype='multipart/form-data' method="POST" action="index.php" onkeypress="return disableReturnSubmission(event);">
<input type='hidden' name='action' value='SaveAdminWizard'/>
<input type='hidden' name='module' value='Configurator'/>
<span class='error'>{$error.main}</span>
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_yui_widgets.js'}"></script>
<script type="text/javascript" src="{sugar_getjspath file='modules/Emails/javascript/vars.js'}"></script>
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_emails.js'}"></script>
<script type="text/javascript" src="{sugar_getjspath file='modules/Users/User.js'}"></script>
<div class="dashletPanelMenu">
<div class="hd"><div class="tl"></div><div class="hd-center"></div><div class="tr"></div></div>
<div class="bd">
<div class="ml"></div>
<div class="bd-center">
<div id="welcome" class="screen">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="edit view">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="left" scope="row" colspan="4"><h2>{$MOD.LBL_WIZARD_WELCOME_TITLE}</h2></th>
</tr>
<tr>
<td scope="row">
<p>{$MOD.LBL_WIZARD_WELCOME}</p>
<div class="userWizWelcome"><img src='include/images/sugar_wizard_welcome.jpg' border='0' width='765px' height='325px'></div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<div class="nav-buttons">
<input title="{$MOD.LBL_WIZARD_SKIP_BUTTON}"
onclick="document.location.href='{$SKIP_URL}';" class="button"
type="button" name="cancel" value=" {$MOD.LBL_WIZARD_SKIP_BUTTON} " />&nbsp;
<input title="{$MOD.LBL_WIZARD_NEXT_BUTTON}"
class="button primary" type="button" name="next_tab1" value=" {$MOD.LBL_WIZARD_NEXT_BUTTON} "
onclick="SugarWizard.changeScreen('system',false);" />
</div>
</div>
<div id="system" class="screen">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="edit view">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="left" scope="row" colspan="4"><h2>{$MOD.LBL_WIZARD_SYSTEM_TITLE}</h2></th>
</tr>
<tr>
<td align="left" scope="row" colspan="4"><i>{$MOD.LBL_WIZARD_SYSTEM_DESC}</i></td>
</tr>
<tr>
<td scope="row" width='15%' nowrap>{$MOD.SYSTEM_NAME_WIZARD}&nbsp;{sugar_help text=$MOD.SYSTEM_NAME_HELP}</td>
<td width='35%'>
<input type='text' name='system_name' value='{$settings.system_name}' />
</td>
</tr>
<tr>
<td scope="row" width='12%' nowrap>{$MOD.NEW_LOGO}&nbsp;{sugar_help text=$MOD.NEW_LOGO_HELP}
</td>
<td width='35%'>
<div id="container_upload"></div>
<input type='text' id='company_logo' name='company_logo' style="display:none" />
</td>
</tr>
<tr>
<td scope="row" width='12%' nowrap>{$MOD.CURRENT_LOGO}&nbsp;{sugar_help text=$MOD.CURRENT_LOGO_HELP}</td>
<td width='35%' >
<img id="company_logo_image" src='{$company_logo}' height="40" width="212" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<div class="nav-buttons">
<input title="{$MOD.LBL_WIZARD_BACK_BUTTON}"
class="button" type="button" name="next_tab1" value=" {$MOD.LBL_WIZARD_BACK_BUTTON} "
onclick="SugarWizard.changeScreen('welcome',true);" />&nbsp;
<input title="{$MOD.LBL_WIZARD_NEXT_BUTTON}"
class="button primary" type="button" name="next_tab1" value=" {$MOD.LBL_WIZARD_NEXT_BUTTON} "
onclick="SugarWizard.changeScreen('locale',false);" />
</div>
</div>
<div id="locale" class="screen">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="edit view">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="left" scope="row" colspan="4"><h2>{sugar_translate module='Administration' label='LBL_LOCALE_TITLE'}</h2></th>
</tr>
<tr>
<td align="left" scope="row" colspan="4"><i>{$MOD.LBL_WIZARD_LOCALE_DESC}</i></td>
</tr>
<tr>
<td nowrap="nowrap" scope="row" width="200">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_DATE_FORMAT'}: </td>
<td>
{html_options name='default_date_format' selected=$config.default_date_format options=$config.date_formats}
</td>
<td nowrap="nowrap" scope="row" width="200">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_TIME_FORMAT'}: </td>
<td>
{html_options name='default_time_format' selected=$config.default_time_format options=$config.time_formats}
</td>
</tr>
<tr>
<td nowrap="nowrap" scope="row">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_LANGUAGE'}: </td>
<td>
{html_options name='default_language' selected=$config.default_language options=$LANGUAGES}
</td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<td nowrap="nowrap" scope="row" width="200">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_CURRENCY_NAME'}: </td>
<td>
<input type='text' size='15' name='default_currency_name' value='{$config.default_currency_name}' >
</td>
<td nowrap="nowrap" scope="row" width="200">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_CURRENCY_SYMBOL'}: </td>
<td>
<input type='text' size='4' name='default_currency_symbol' value='{$config.default_currency_symbol}' >
</td>
</tr>
<tr>
<td nowrap="nowrap" scope="row" width="200">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_CURRENCY_ISO4217'}: </td>
<td>
<input type='text' size='4' name='default_currency_iso4217' value='{$config.default_currency_iso4217}'>
</td>
<td nowrap="nowrap" scope="row">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_NUMBER_GROUPING_SEP'}: </td>
<td>
<input type='text' size='3' maxlength='1' name='default_number_grouping_seperator' value='{$config.default_number_grouping_seperator}'>
</td>
</tr>
<tr>
<td nowrap="nowrap" scope="row">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_DECIMAL_SEP'}: </td>
<td>
<input type='text' size='3' maxlength='1' name='default_decimal_seperator' value='{$config.default_decimal_seperator}'>
</td>
<td nowrap="nowrap" scope="row"></td>
<td></td>
</tr>
<tr>
<td colspan="4"><hr /></td>
</tr>
<tr>
<td nowrap="nowrap" scope="row" valign="top">{sugar_translate module='Administration' label='LBL_LOCALE_DEFAULT_NAME_FORMAT'}: </td>
<td>
<input onkeyup="setPreview();" size='15' onkeydown="setPreview();" id="default_locale_name_format" type="text" name="default_locale_name_format" value="{$config.default_locale_name_format}">
<br>
{sugar_translate module='Administration' label='LBL_LOCALE_NAME_FORMAT_DESC'}
</td>
<td nowrap="nowrap" scope="row" valign="top">{sugar_translate module='Administration' label='LBL_LOCALE_EXAMPLE_NAME_FORMAT'}: </td>
<td valign="top"><input name="no_value" id="nameTarget" style="border: none;" value="" disabled></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<div class="nav-buttons">
<input title="{$MOD.LBL_WIZARD_BACK_BUTTON}"
class="button" type="button" name="next_tab1" value=" {$MOD.LBL_WIZARD_BACK_BUTTON} "
onclick="SugarWizard.changeScreen('system',true);" />&nbsp;
<input title="{$MOD.LBL_WIZARD_NEXT_BUTTON}"
class="button primary" type="button" name="next_tab1" value=" {$MOD.LBL_WIZARD_NEXT_BUTTON} "
onclick="SugarWizard.changeScreen('smtp',false); changeEmailScreenDisplay('{$mail_smtptype}'); document.getElementById('AdminWizard').mail_smtptype.value = 'gmail';" />
</div>
</div>
<div id="smtp" class="screen">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="edit view">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="left" scope="row" colspan="4">
<h2>{$MOD.LBL_MAIL_SMTP_SETTINGS}</h2>
</th>
</tr>
<tr>
<td align="left" scope="row" colspan="4"><i>{$MOD.LBL_WIZARD_SMTP_DESC}</i></td>
</tr>
<tr>
<td align="left" scope="row" colspan="4">{$MOD.LBL_CHOOSE_EMAIL_PROVIDER}</td>
</tr>
<tr>
<td colspan="4">
<input type="hidden" name="mail_sendtype" value="SMTP" />
<div id="smtpButtonGroup" class="yui-buttongroup">
<span id="gmail" class="yui-button yui-radio-button{if $mail_smtptype == 'gmail'} yui-button-checked{/if}">
<span class="first-child">
<button type="button" name="mail_smtptype" value="gmail">
&nbsp;&nbsp;&nbsp;&nbsp;{$APP.LBL_SMTPTYPE_GMAIL}&nbsp;&nbsp;&nbsp;&nbsp;
</button>
</span>
</span>
<span id="yahoomail" class="yui-button yui-radio-button{if $mail_smtptype == 'yahoomail'} yui-button-checked{/if}">
<span class="first-child">
<button type="button" name="mail_smtptype" value="yahoomail">
&nbsp;&nbsp;&nbsp;&nbsp;{$APP.LBL_SMTPTYPE_YAHOO}&nbsp;&nbsp;&nbsp;&nbsp;
</button>
</span>
</span>
<span id="exchange" class="yui-button yui-radio-button{if $mail_smtptype == 'exchange'} yui-button-checked{/if}">
<span class="first-child">
<button type="button" name="mail_smtptype" value="exchange">
&nbsp;&nbsp;&nbsp;&nbsp;{$APP.LBL_SMTPTYPE_EXCHANGE}&nbsp;&nbsp;&nbsp;&nbsp;
</button>
</span>
</span>
<span id="other" class="yui-button yui-radio-button{if $mail_smtptype == 'other' || empty($mail_smtptype)} yui-button-checked{/if}">
<span class="first-child">
<button type="button" name="mail_smtptype" value="other">
&nbsp;&nbsp;&nbsp;&nbsp;{$APP.LBL_TABGROUP_OTHER}&nbsp;&nbsp;&nbsp;&nbsp;
</button>
</span>
</span>
</div>
</td>
</tr>
<tr>
<td colspan="4">
<div id="smtp_settings">
<table width="100%" cellpadding="0" cellspacing="0">
<tr id="mailsettings1">
<td width="20%" scope="row"><span id="mail_smtpserver_label">{$MOD.LBL_MAIL_SMTPSERVER}</span> <span class="required" id="required_mail_smtpserver"></span></td>
<td width="30%" ><slot><input type="text" id="mail_smtpserver" name="mail_smtpserver" tabindex="1" size="25" maxlength="64" value="{$mail_smtpserver}"></slot></td>
<td width="20%" scope="row"><span id="mail_smtpport_label">{$MOD.LBL_MAIL_SMTPPORT}</span></td>
<td width="30%" ><input type="text" id="mail_smtpport" name="mail_smtpport" tabindex="1" size="5" maxlength="5" value="{$mail_smtpport}"></td>
</tr>
<tr id="mailsettings2">
<td width="20%" scope="row"><span id='mail_smtpauth_req_label'>{$MOD.LBL_MAIL_SMTPAUTH_REQ}</span></td>
<td width="30%">
<input id='mail_smtpauth_req' name='mail_smtpauth_req' type="checkbox" class="checkbox" value="1" tabindex='1'
onclick="notify_setrequired();" {$mail_smtpauth_req}>
</td>
<td width="20%" scope="row" nowrap="nowrap"><span id="mail_smtpssl_label">{$APP.LBL_EMAIL_SMTP_SSL_OR_TLS}</span></td>
<td width="30%">
<select id="mail_smtpssl" name="mail_smtpssl" tabindex="501">{$MAIL_SSL_OPTIONS}</select>
</td>
</tr>
<tr id="smtp_auth1">
<td width="20%" scope="row" nowrap="nowrap"><span id="mail_smtpuser_label">{$MOD.LBL_MAIL_SMTPUSER}</span> <span class="required"></span></td>
<td width="30%" ><slot><input type="text" id="mail_smtpuser" name="mail_smtpuser" size="25" maxlength="64" value="{$mail_smtpuser}" tabindex='1' ></slot></td>
<td scope="row">&nbsp;</td>
<td >&nbsp;</td>
</tr>
<tr id="smtp_auth2">
<td width="20%" scope="row" nowrap="nowrap"><span id="mail_smtppass_label">{$MOD.LBL_MAIL_SMTPPASS}</span> <span class="required"></span></td>
<td width="30%" ><slot><input type="password" id="mail_smtppass" name="mail_smtppass" size="25" maxlength="64" value="{$mail_smtppass}" tabindex='1'></slot></td>
<td scope="row">&nbsp;</td>
<td >&nbsp;</td>
</tr>
<tr>
<td width="20%" scope="row">
<span id="notify_allow_default_outbound_label">
{$MOD.LBL_ALLOW_DEFAULT_SELECTION}&nbsp;
<img border="0" onmouseout="return nd();" onmouseover="return overlib('{$MOD.LBL_ALLOW_DEFAULT_SELECTION_HELP}', FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass', CLOSEFONTCLASS, 'olCloseFontClass', WIDTH, -1, NOFOLLOW, 'ol_nofollow')" src="index.php?entryPoint=getImage&themeName={$THEME}&imageName=helpInline.gif">
</span>
</td>
<td width="30%">
<slot>
<input type='hidden' name='notify_allow_default_outbound' value='0'>
<input id='notify_allow_default_outbound' name='notify_allow_default_outbound' value="2" tabindex='1' class="checkbox" type="checkbox" {$notify_allow_default_outbound_on}>
</slot>
</td>
<td scope="row">&nbsp;</td>
<td >&nbsp;</td>
</tr>
<tr>
<td width="50%" cellspan="2" scope="row" nowrap>
<input title="{$APP.LBL_CLEAR_BUTTON_TITLE}"
class="button" type="button" name="btn_clear" accesskey="{$APP.LBL_CLEAR_BUTTON_KEY}" value="{$APP.LBL_CLEAR_BUTTON_LABEL}"
onclick="clearEmailFields();" />&nbsp;
<input type="button" class="button" value="{$APP.LBL_EMAIL_TEST_OUTBOUND_SETTINGS}"
onclick="testOutboundSettingsDialog();">&nbsp;
</td>
<td scope="row">&nbsp;</td>
<td >&nbsp;</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</td>
</table>
<div class="nav-buttons">
<input title="{$MOD.LBL_WIZARD_BACK_BUTTON}"
class="button" type="button" name="next_tab1" value=" {$MOD.LBL_WIZARD_BACK_BUTTON} "
onclick="SugarWizard.changeScreen('locale',true);" />&nbsp;
<input title="{$MOD.LBL_WIZARD_CONTINUE_BUTTON}" class="button primary"
type="submit" name="continue" value="{$MOD.LBL_WIZARD_CONTINUE_BUTTON}" />&nbsp;
</div>
</div>
</div>
<div class="mr"></div>
</div>
<div class="ft"><div class="bl"></div><div class="ft-center"></div><div class="br"></div></div>
</div>
<script>
addToValidate('ConfigureSettings', 'system_name', 'varchar', true,'System Name' );
</script>
</form>
<div id='upload_panel' style="display:none">
<form id="upload_form" name="upload_form" method="POST" action='index.php' enctype="multipart/form-data">
<input type="file" id="my_file_company" name="file_1" size="20" onchange="uploadCheck(false)"/>
<img id="loading_img_company" alt="loading..." src="{sugar_getimagepath file='sqsWait.gif'}" style="display:none">
</form>
</div>
<div id="testOutboundDialog" class="yui-hidden">
<div id="testOutbound">
<form>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
<tr>
<td scope="row">
{$APP.LBL_EMAIL_SETTINGS_FROM_TO_EMAIL_ADDR}
<span class="required">
</span>
</td>
<td>
<input type="text" id="outboundtest_from_address" name="outboundtest_from_address" size="35" maxlength="64" value="">
</td>
</tr>
<tr>
<td scope="row" colspan="2">
<input type="button" class="button" value=" {$APP.LBL_EMAIL_SEND} " onclick="javascript:sendTestEmail();">&nbsp;
<input type="button" class="button" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " onclick="javascript:EmailMan.testOutboundDialog.hide();">&nbsp;
</td>
</tr>
</table>
</form>
</div>
</div>
{literal}
<script type='text/javascript'>
<!--
var SugarWizard = new function()
{
this.currentScreen = 'welcome';
this.changeScreen = function(screen,skipCheck)
{
if ( !skipCheck ) {
clear_all_errors();
var form = document.getElementById('AdminWizard');
var isError = false;
switch(this.currentScreen) {
case 'smtp':
smtp_type = document.getElementById('AdminWizard').mail_smtptype.value;
smtp_server_required = smtp_type == 'exchange' || smtp_type == 'other' ? true : false;
if(document.getElementById('notify_allow_default_outbound').checked ||
document.getElementById('mail_smtpuser').value != '' ||
document.getElementById('mail_smtppass').value != '' ||
(smtp_server_required && document.getElementById('mail_smtpserver').value != '')
) {
if ( document.getElementById('mail_smtpserver').value == '' ) {
add_error_style('AdminWizard',form.mail_smtpserver.name,
'{/literal}{$APP.ERR_MISSING_REQUIRED_FIELDS} {$MOD.LBL_MAIL_SMTPSERVER}{literal}' );
isError = true;
}
if ( document.getElementById('mail_smtpauth_req').checked
&& document.getElementById('mail_smtpuser').value == '' ) {
add_error_style('AdminWizard',form.mail_smtpuser.name,
'{/literal}{$APP.ERR_MISSING_REQUIRED_FIELDS} {$MOD.LBL_MAIL_SMTPUSER}{literal}' );
isError = true;
}
if ( document.getElementById('mail_smtpauth_req').checked
&& document.getElementById('mail_smtppass').value == '' ) {
add_error_style('AdminWizard',form.mail_smtppass.name,
'{/literal}{$APP.ERR_MISSING_REQUIRED_FIELDS} {$MOD.LBL_MAIL_SMTPPASS}{literal}' );
isError = true;
}
}
break;
default:
document.getElementById('upload_panel').style.display="none";
}
if (isError == true)
return false;
}
document.getElementById(this.currentScreen).style.display = 'none';
document.getElementById(screen).style.display = 'block';
this.currentScreen = screen;
switch(screen) {
case 'system':
document.getElementById('upload_panel').style.display="inline";
document.getElementById('upload_panel').style.position="absolute";
YAHOO.util.Dom.setXY('upload_panel', YAHOO.util.Dom.getXY('container_upload'));
break;
case 'smtp':
if ( !SUGAR.smtpButtonGroup ) {
SUGAR.smtpButtonGroup = new YAHOO.widget.ButtonGroup("smtpButtonGroup");
SUGAR.smtpButtonGroup.subscribe('checkedButtonChange', function(e)
{
changeEmailScreenDisplay(e.newValue.get('value'));
document.getElementById('smtp_settings').style.display = '';
document.getElementById('AdminWizard').mail_smtptype.value = e.newValue.get('value');
});
YAHOO.widget.Button.addHiddenFieldsToForm(document.getElementById('AdminWizard'));
}
break;
default:
document.getElementById('upload_panel').style.display="none";
}
}
}
SugarWizard.changeScreen('{/literal}{$START_PAGE}{literal}');
function clearEmailFields() {
document.getElementById('AdminWizard').mail_smtpuser.value = '';
document.getElementById('AdminWizard').mail_smtppass.value = '';
document.getElementById('notify_allow_default_outbound').checked = false;
changeEmailScreenDisplay(document.getElementById('AdminWizard').mail_smtptype.value);
}
function changeEmailScreenDisplay(smtptype)
{
document.getElementById("mail_smtpserver").value = '';
document.getElementById("mail_smtpport").value = '25';
document.getElementById("mail_smtpauth_req").checked = true;
document.getElementById("mailsettings1").style.display = '';
document.getElementById("mailsettings2").style.display = '';
document.getElementById("mail_smtppass_label").innerHTML = '{/literal}{$MOD.LBL_MAIL_SMTPPASS}{literal}';
document.getElementById("mail_smtpport_label").innerHTML = '{/literal}{$MOD.LBL_MAIL_SMTPPORT}{literal}';
document.getElementById("mail_smtpserver_label").innerHTML = '{/literal}{$MOD.LBL_MAIL_SMTPSERVER}{literal}';
document.getElementById("mail_smtpuser_label").innerHTML = '{/literal}{$MOD.LBL_MAIL_SMTPUSER}{literal}';
switch (smtptype) {
case "yahoomail":
document.getElementById("mail_smtpserver").value = 'plus.smtp.mail.yahoo.com';
document.getElementById("mail_smtpport").value = '465';
document.getElementById("mail_smtpauth_req").checked = true;
var ssl = document.getElementById("mail_smtpssl");
for(var j=0;j<ssl.options.length;j++) {
if(ssl.options[j].text == 'SSL') {
ssl.options[j].selected = true;
break;
}
}
document.getElementById("mailsettings1").style.display = 'none';
document.getElementById("mailsettings2").style.display = 'none';
document.getElementById("mail_smtppass_label").innerHTML = '{/literal}{$MOD.LBL_YAHOOMAIL_SMTPPASS}{literal}';
document.getElementById("mail_smtpuser_label").innerHTML = '{/literal}{$MOD.LBL_YAHOOMAIL_SMTPUSER}{literal}';
break;
case "gmail":
document.getElementById("mail_smtpserver").value = 'smtp.gmail.com';
document.getElementById("mail_smtpport").value = '587';
document.getElementById("mail_smtpauth_req").checked = true;
var ssl = document.getElementById("mail_smtpssl");
for(var j=0;j<ssl.options.length;j++) {
if(ssl.options[j].text == 'TLS') {
ssl.options[j].selected = true;
break;
}
}
document.getElementById("mailsettings1").style.display = 'none';
document.getElementById("mailsettings2").style.display = 'none';
document.getElementById("mail_smtppass_label").innerHTML = '{/literal}{$MOD.LBL_GMAIL_SMTPPASS}{literal}';
document.getElementById("mail_smtpuser_label").innerHTML = '{/literal}{$MOD.LBL_GMAIL_SMTPUSER}{literal}';
break;
case "exchange":
document.getElementById("mail_smtpserver").value = '';
document.getElementById("mail_smtpport").value = '25';
document.getElementById("mail_smtpauth_req").checked = true;
document.getElementById("mailsettings1").style.display = '';
document.getElementById("mailsettings2").style.display = '';
document.getElementById("mail_smtppass_label").innerHTML = '{/literal}{$MOD.LBL_EXCHANGE_SMTPPASS}{literal}';
document.getElementById("mail_smtpport_label").innerHTML = '{/literal}{$MOD.LBL_EXCHANGE_SMTPPORT}{literal}';
document.getElementById("mail_smtpserver_label").innerHTML = '{/literal}{$MOD.LBL_EXCHANGE_SMTPSERVER}{literal}';
document.getElementById("mail_smtpuser_label").innerHTML = '{/literal}{$MOD.LBL_EXCHANGE_SMTPUSER}{literal}';
break;
}
notify_setrequired();
}
//changeEmailScreenDisplay("{/literal}{$mail_smtptype}{literal}");
function uploadCheck(quotes){
//AJAX call for checking the file size and comparing with php.ini settings.
var callback = {
upload:function(r) {
eval("var file_type = " + r.responseText);
var forQuotes = file_type['forQuotes'];
document.getElementById('loading_img_'+forQuotes).style.display="none";
switch(file_type['data']){
case 'other':
alert(SUGAR.language.get('Configurator','LBL_ALERT_JPG_IMAGE'));
document.getElementById('my_file_' + forQuotes).value='';
break;
case 'size':
alert(SUGAR.language.get('Configurator','LBL_ALERT_SIZE_RATIO'));
document.getElementById(forQuotes + "_logo").value=file_type['path'];
document.getElementById(forQuotes + "_logo_image").src=file_type['path'];
break;
case 'file_error':
alert(SUGAR.language.get('Configurator','ERR_ALERT_FILE_UPLOAD'));
document.getElementById('my_file_' + forQuotes).value='';
break;
//File good
case 'ok':
document.getElementById(forQuotes + "_logo").value=file_type['path'];
document.getElementById(forQuotes + "_logo_image").src=file_type['path'];
break;
//error in getimagesize because unsupported type
default:
alert(SUGAR.language.get('Configurator','LBL_ALERT_TYPE_IMAGE'));
document.getElementById('my_file_' + forQuotes).value='';
}
},
failure:function(r){
alert(SUGAR.language.get('app_strings','LBL_AJAX_FAILURE'));
}
}
document.getElementById("company_logo").value='';
document.getElementById('loading_img_company').style.display="inline";
var file_name = document.getElementById('my_file_company').value;
postData = '&entryPoint=UploadFileCheck&forQuotes=false';
YAHOO.util.Connect.setForm(document.getElementById('upload_form'), true,true);
if(file_name){
if(postData.substring(0,1) == '&'){
postData=postData.substring(1);
}
YAHOO.util.Connect.asyncRequest('POST', 'index.php', callback, postData);
}
}
var urlStandard = 'sugar_body_only=true&to_pdf=true&module=Emails&action=EmailUIAjax';
UA = YAHOO.env.ua;
EmailMan = {};
function testOutboundSettings() {
var errorMessage = '';
var isError = false;
var fromAddress = document.getElementById("outboundtest_from_address").value;
var errorMessage = '';
var isError = false;
var smtpServer = document.getElementById('mail_smtpserver').value;
var smtpPort = document.getElementById('mail_smtpport').value;
var smtpssl = document.getElementById('mail_smtpssl').value;
var mailsmtpauthreq = document.getElementById('mail_smtpauth_req');
if(trim(smtpServer) == '') {
isError = true;
errorMessage += "{/literal}{$APP.LBL_EMAIL_ACCOUNTS_SMTPSERVER}{literal}" + "<br/>";
}
if(trim(smtpPort) == '') {
isError = true;
errorMessage += "{/literal}{$APP.LBL_EMAIL_ACCOUNTS_SMTPPORT}{literal}" + "<br/>";
}
if(mailsmtpauthreq.checked) {
if(trim(document.getElementById('mail_smtpuser').value) == '') {
isError = true;
errorMessage += "{/literal}{$APP.LBL_EMAIL_ACCOUNTS_SMTPUSER}{literal}" + "<br/>";
}
if(trim(document.getElementById('mail_smtppass').value) == '') {
isError = true;
errorMessage += "{/literal}{$APP.LBL_EMAIL_ACCOUNTS_SMTPPASS}{literal}" + "<br/>";
}
}
if(isError) {
overlay("{/literal}{$APP.ERR_MISSING_REQUIRED_FIELDS}{literal}", errorMessage, 'alert');
return false;
}
testOutboundSettingsDialog();
}
function sendTestEmail()
{
var fromAddress = document.getElementById("outboundtest_from_address").value;
if (trim(fromAddress) == "")
{
overlay("{/literal}{$APP.ERR_MISSING_REQUIRED_FIELDS}{literal}", "{/literal}{$APP.LBL_EMAIL_SETTINGS_FROM_TO_EMAIL_ADDR}{literal}", 'alert');
return;
}
else if (!isValidEmail(fromAddress)) {
overlay("{/literal}{$APP.ERR_INVALID_REQUIRED_FIELDS}{literal}", "{/literal}{$APP.LBL_EMAIL_SETTINGS_FROM_TO_EMAIL_ADDR}{literal}", 'alert');
return;
}
//Hide the email address window and show a message notifying the user that the test email is being sent.
EmailMan.testOutboundDialog.hide();
overlay("{/literal}{$APP.LBL_EMAIL_PERFORMING_TASK}{literal}", "{/literal}{$APP.LBL_EMAIL_ONE_MOMENT}{literal}", 'alert');
var callbackOutboundTest = {
success : function(o) {
hideOverlay();
overlay("{/literal}{$APP.LBL_EMAIL_TEST_OUTBOUND_SETTINGS}{literal}", "{/literal}{$APP.LBL_EMAIL_TEST_NOTIFICATION_SENT}{literal}", 'alert');
}
};
var smtpServer = document.getElementById('mail_smtpserver').value;
var smtpPort = document.getElementById('mail_smtpport').value;
var smtpssl = document.getElementById('mail_smtpssl').value;
var mailsmtpauthreq = document.getElementById('mail_smtpauth_req');
var mail_sendtype = 'SMTP';
var postDataString = 'mail_sendtype=' + mail_sendtype + '&mail_smtpserver=' + smtpServer + "&mail_smtpport=" + smtpPort + "&mail_smtpssl=" + smtpssl + "&mail_smtpauth_req=" + mailsmtpauthreq.checked + "&mail_smtpuser=" + trim(document.getElementById('mail_smtpuser').value) + "&mail_smtppass=" + trim(document.getElementById('mail_smtppass').value) + "&outboundtest_from_address=" + fromAddress;
YAHOO.util.Connect.asyncRequest("POST", "index.php?action=EmailUIAjax&module=Emails&emailUIAction=testOutbound&to_pdf=true&sugar_body_only=true", callbackOutboundTest, postDataString);
}
function testOutboundSettingsDialog() {
// lazy load dialogue
if(!EmailMan.testOutboundDialog) {
EmailMan.testOutboundDialog = new YAHOO.widget.Dialog("testOutboundDialog", {
modal:true,
visible:true,
fixedcenter:true,
constraintoviewport: true,
width : 600,
shadow : false
});
EmailMan.testOutboundDialog.setHeader("{/literal}{$APP.LBL_EMAIL_TEST_OUTBOUND_SETTINGS}{literal}");
YAHOO.util.Dom.removeClass("testOutboundDialog", "yui-hidden");
} // end lazy load
EmailMan.testOutboundDialog.render();
EmailMan.testOutboundDialog.show();
} // fn
function overlay(reqtitle, body, type) {
var config = { };
config.type = type;
config.title = reqtitle;
config.msg = body;
YAHOO.SUGAR.MessageBox.show(config);
}
function hideOverlay() {
YAHOO.SUGAR.MessageBox.hide();
}
function notify_setrequired() {
document.getElementById("smtp_auth1").style.display = (document.getElementById('mail_smtpauth_req').checked) ? "" : "none";
document.getElementById("smtp_auth1").style.visibility = (document.getElementById('mail_smtpauth_req').checked) ? "visible" : "hidden";
document.getElementById("smtp_auth2").style.display = (document.getElementById('mail_smtpauth_req').checked) ? "" : "none";
document.getElementById("smtp_auth2").style.visibility = (document.getElementById('mail_smtpauth_req').checked) ? "visible" : "hidden";
return true;
}
notify_setrequired();
{/literal}
{$getNameJs}
-->
</script>

View File

@@ -0,0 +1,119 @@
{*
/*********************************************************************************
* 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_grp_yui_widgets.js'}'></script>
<script type="text/javascript" src='{sugar_getjspath file ='include/javascript/yui/build/paginator/paginator-min.js'}'></script>
{literal}
<style type="text/css">
.yui-pg-container {
background: none;
}
</style>
{/literal}
<p>
{$MODULE_TITLE}
</p>
<form enctype="multipart/form-data" name="fontmanager" method="POST" action="index.php" id="fontmanager">
<input type="hidden" name="module" value="Configurator">
<input type="hidden" name="action" value="FontManager">
<input type="hidden" name="action_type" value="">
<input type="hidden" name="filename" value="">
<input type="hidden" name='return_action' value="{$RETURN_ACTION}">
<span class='error'>{$error}</span>
<br>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left">
<input title="{$MOD.LBL_BACK}" accessKey="" class="button" type="button" name="gobackbutton" value=" {$MOD.LBL_BACK} " id="gobackbutton">&nbsp;
<input title="{$MOD.LBL_ADD_FONT}" accessKey="" class="button" type="button" name="addFontbutton" value=" {$MOD.LBL_ADD_FONT} " id="addFontbutton">
</td>
</tr>
</table>
<br>
<div id="YuiListMarkup"></div>
<br>
</form>
{literal}
<script type="text/javascript">
var removeFormatter = function (el, oRecord, oColumn, oData) {
if(oRecord._oData.type != "{/literal}{$MOD.LBL_FONT_TYPE_CORE}{literal}" && oRecord._oData.fontpath != "{/literal}{$K_PATH_FONTS}{literal}"){
el.innerHTML = '<a href="#" name="deleteButton" onclick="return false;"><img border="0" align="absmiddle" alt="delete" src="{/literal}{sugar_getimagepath file="delete_inline.gif"}{literal}"/>{/literal} {$MOD.LBL_REMOVE}{literal}<\/a>';
}
};
YAHOO.util.Event.onDOMReady(function() {
{/literal}
var fontColumnDefs = {$COLUMNDEFS};
var fontData = {$DATASOURCE};
{literal}
var fontDataSource = new YAHOO.util.DataSource(fontData);
fontDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
fontDataSource.responseSchema = {/literal}{$RESPONSESCHEMA}{literal};
var oConfigs = {
paginator: new YAHOO.widget.Paginator({
rowsPerPage:15
})
};
var fontDataTable = new YAHOO.widget.DataTable("YuiListMarkup", fontColumnDefs, fontDataSource, oConfigs);
fontDataTable.subscribe("linkClickEvent", function(oArgs){
if(oArgs.target.name == "deleteButton"){
if(confirm('{/literal}{$MOD.LBL_JS_CONFIRM_DELETE_FONT}{literal}')){
document.getElementById("fontmanager").action.value = "deleteFont";
document.getElementById("fontmanager").filename.value = this.getRecord(oArgs.target)._oData.filename;
document.getElementById("fontmanager").submit();
}
}
});
document.getElementById('gobackbutton').onclick=function(){
if(document.getElementById("fontmanager").return_action.value != ""){
document.location.href='index.php?module=Configurator&action=' + document.getElementById("fontmanager").return_action.value;
}else{
document.location.href='index.php?module=Configurator&action=SugarpdfSettings';
}
};
document.getElementById('addFontbutton').onclick=function(){
document.location.href='index.php?module=Configurator&action=addFontView';
};
});
{/literal}
</script>

View File

@@ -0,0 +1,79 @@
{*
/*********************************************************************************
* 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 style="visibility:hidden;" id="linkedin_popup_div"></div>
<script src="{{$config.properties.company_url}}" type="text/javascript"></script>
<script type="text/javascript" src="{sugar_getjspath file='include/connectors/formatters/default/company_detail.js'}"></script>
{literal}
<style type="text/css">
.yui-panel .hd {
background-color:#3D77CB;
border-color:#FFFFFF #FFFFFF #000000;
border-style:solid;
border-width:1px;
color:#000000;
font-size:100%;
font-weight:bold;
line-height:100%;
padding:4px;
white-space:nowrap;
}
</style>
{/literal}
<script type="text/javascript">
function show_ext_rest_linkedin(event)
{literal}
{
var xCoordinate = event.clientX;
var yCoordinate = event.clientY;
var isIE = document.all?true:false;
if(isIE) {
xCoordinate = xCoordinate + document.body.scrollLeft;
yCoordinate = yCoordinate + document.body.scrollTop;
}
{/literal}
cd = new CompanyDetailsDialog("linkedin_popup_div", '<div id="linkedin_div"></div>', xCoordinate, yCoordinate);
cd.setHeader("{$fields.{{$mapping_name}}.value}");
cd.display();
linked_in_popup = new LinkedIn.CompanyInsiderBox("linkedin_div", "{$fields.{{$mapping_name}}.value}");
{literal}
}
{/literal}
</script>

View File

@@ -0,0 +1,101 @@
{*
/*********************************************************************************
* 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 class='edit view small' width="100%" border="0" cellspacing="1" cellpadding="0" >
<tr valign="top">
<td width="35%">
<table border="0" cellspacing="2" cellpadding="0" >
<tr valign='top'>
<td><img src="{$IMG}icon_ConnectorConfig.gif" name="connectorConfig" onclick="document.location.href='index.php?module=Connectors&action=ModifyProperties';"
onMouseOver="document.connectorConfig.src='{$IMG}icon_ConnectorConfigOver.gif'"
onMouseOut="document.connectorConfig.src='{$IMG}icon_ConnectorConfig.gif'"></td>
<td>&nbsp;&nbsp;</td>
<td><b>{$mod.LBL_MODIFY_PROPERTIES_TITLE}</b><br/>
{$mod.LBL_MODIFY_PROPERTIES_DESC}
</td>
</tr>
<tr>
<td colspan=2>&nbsp;</td>
</tr>
<tr valign='top'>
<td><img src="{$IMG}icon_ConnectorEnable.gif" name="enableImage" onclick="document.location.href='index.php?module=Connectors&action=ModifyDisplay';"
onMouseOver="document.enableImage.src='{$IMG}icon_ConnectorEnableOver.gif'"
onMouseOut="document.enableImage.src='{$IMG}icon_ConnectorEnable.gif'"></td>
<td>&nbsp;&nbsp;</td>
<td><b>{$mod.LBL_MODIFY_DISPLAY_TITLE}</b><br/>
{$mod.LBL_MODIFY_DISPLAY_DESC}
</td>
</tr>
</table>
</td>
<td width="10%">&nbsp;</td>
<td width="35%">
<table border="0" cellspacing="2" cellpadding="0">
<tr valign='top'>
<td><img src="{$IMG}icon_ConnectorMap.gif" name="connectorMapImg" onclick="document.location.href='index.php?module=Connectors&action=ModifyMapping';"
onMouseOver="document.connectorMapImg.src='{$IMG}icon_ConnectorMapOver.gif'"
onMouseOut="document.connectorMapImg.src='{$IMG}icon_ConnectorMap.gif'"></td>
<td>&nbsp;&nbsp;</td>
<td><b>{$mod.LBL_MODIFY_MAPPING_TITLE}</b><br/>
{$mod.LBL_MODIFY_MAPPING_DESC}
</td>
</tr>
<tr>
<td colspan=2>&nbsp;</td>
</tr>
<tr valign='top'>
<td>
<img src="{$IMG}icon_ConnectorSearchFields.gif" name="connectorSearchImg" onclick="document.location.href='index.php?module=Connectors&action=ModifySearch';"
onMouseOver="document.connectorSearchImg.src='{$IMG}icon_ConnectorSearchFieldsOver.gif'"
onMouseOut="document.connectorSearchImg.src='{$IMG}icon_ConnectorSearchFields.gif'">
</td>
<td>&nbsp;&nbsp;</td>
<td>
{* BEGIN SUGARCRM flav=pro || flav=sales ONLY *}
<b>{$mod.LBL_MODIFY_SEARCH_TITLE}</b><br/>
{$mod.LBL_MODIFY_SEARCH_DESC}
{* END SUGARCRM flav=pro || flav=sales ONLY *}
</td>
</tr>
</table>
</td>
<td width="20%">&nbsp;</td>
</tr>
</table>

View File

@@ -0,0 +1,206 @@
{*
/*********************************************************************************
* 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="{$source_id}" class="sources_table" border="0" cellspacing="1" cellpadding="1">
<tr>
<td width="33%">
<span><b>{$mod.LBL_ENABLED}</b></span>
</td>
<td width="33%">
<span><b>{$mod.LBL_DISABLED}</b></span>
</td>
<td width="33%">&nbsp;</td>
</tr>
<tr>
<td>
<div id="{$source_id}:enabled_div" class="enabled_module_workarea">
<ul id="{$source_id}:enabled_ul" class="module_draglist">
{foreach from=$enabled_modules item=module}
<li id="{$source_id}:{$module}" class="noBullet2">{$module}</li>
{/foreach}
</ul>
</div>
</td>
<td>
<div id="{$source_id}:disabled_div" class="disabled_module_workarea">
<ul id="{$source_id}:disabled_ul" class="module_draglist">
{foreach from=$disabled_modules item=module}
<li id="{$source_id}:{$module}" class="noBullet2">{$module}</li>
{/foreach}
</ul>
</div>
</td>
<td>&nbsp;</td>
</tr>
</table>
<script type="text/javascript">
{literal}
var Dom = YAHOO.util.Dom;
var Event = YAHOO.util.Event;
var DDM = YAHOO.util.DragDropMgr;
(function() {
YAHOO.example.DDApp = {
init: function() {
{/literal}
new YAHOO.util.DDTarget("{$source_id}:enabled_ul");
new YAHOO.util.DDTarget("{$source_id}:disabled_ul");
{foreach from=$enabled_modules item=module}
new YAHOO.example.DDList("{$source_id}:{$module}");
{/foreach}
{foreach from=$disabled_modules item=module}
new YAHOO.example.DDList("{$source_id}:{$module}");
{/foreach}
{literal}
}
};
YAHOO.example.DDList = function(id, sGroup, config) {
YAHOO.example.DDList.superclass.constructor.call(this, id, sGroup, config);
var el = this.getDragEl();
Dom.setStyle(el, "opacity", 0.67);
this.goingUp = false;
this.lastY = 0;
};
YAHOO.extend(YAHOO.example.DDList, YAHOO.util.DDProxy, {
startDrag: function(x, y) {
// make the proxy look like the source element
var dragEl = this.getDragEl();
var clickEl = this.getEl();
Dom.setStyle(clickEl, "visibility", "hidden");
dragEl.innerHTML = clickEl.innerHTML;
Dom.setStyle(dragEl, "color", Dom.getStyle(clickEl, "color"));
Dom.setStyle(dragEl, "backgroundColor", Dom.getStyle(clickEl, "backgroundColor"));
Dom.setStyle(dragEl, "border", "2px solid gray");
},
endDrag: function(e) {
var srcEl = this.getEl();
var proxy = this.getDragEl();
// Show the proxy element and animate it to the src element's location
Dom.setStyle(proxy, "visibility", "");
var a = new YAHOO.util.Motion(
proxy, {
points: {
to: Dom.getXY(srcEl)
}
},
0.2,
YAHOO.util.Easing.easeOut
)
var proxyid = proxy.id;
var thisid = this.id;
// Hide the proxy and show the source element when finished with the animation
a.onComplete.subscribe(function() {
Dom.setStyle(proxyid, "visibility", "hidden");
Dom.setStyle(thisid, "visibility", "");
});
a.animate();
},
onDragDrop: function(e, id) {
// If there is one drop interaction, the li was dropped either on the list,
// or it was dropped on the current location of the source element.
if (typeof(DDM.interactionInfo) != 'undefined' && DDM.interactionInfo.drop.length === 1) {
// The position of the cursor at the time of the drop (YAHOO.util.Point)
var pt = DDM.interactionInfo.point;
// The region occupied by the source element at the time of the drop
var region = DDM.interactionInfo.sourceRegion;
// Check to see if we are over the source element's location. We will
// append to the bottom of the list once we are sure it was a drop in
// the negative space (the area of the list without any list items)
if (!region.intersect(pt)) {
var destEl = Dom.get(id);
var destDD = DDM.getDDById(id);
destEl.appendChild(this.getEl());
destDD.isEmpty = false;
DDM.refreshCache();
}
}
},
onDrag: function(e) {
// Keep track of the direction of the drag for use during onDragOver
var y = Event.getPageY(e);
if (y < this.lastY) {
this.goingUp = true;
} else if (y > this.lastY) {
this.goingUp = false;
}
this.lastY = y;
},
onDragOver: function(e, id) {
var srcEl = this.getEl();
var destEl = Dom.get(id);
if (destEl.nodeName.toLowerCase() == "li") {
var orig_p = srcEl.parentNode;
var p = destEl.parentNode;
if (this.goingUp) {
p.insertBefore(srcEl, destEl); // insert above
} else {
p.insertBefore(srcEl, destEl.nextSibling); // insert below
}
DDM.refreshCache();
}
}
});
Event.onDOMReady(YAHOO.example.DDApp.init, YAHOO.example.DDApp, true);
})();
{/literal}
</script>

View File

@@ -0,0 +1,81 @@
{*
/*********************************************************************************
* 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_grp_overlib.js'}'></script>
<script type='text/javascript' src='{sugar_getjspath file='include/javascript/sugar_3.js'}'></script>
<table cellpadding='0' cellspacing='0' width='100%' border='0' class='list view'>
<tr>
<th width="5%">{$APP.LBL_SELECT_BUTTON_LABEL}</td>
{foreach from=$displayColumns key=colHeader item=params}
{if $colHeader != 'id'}
<th width="{$params.width}%" nowrap>
{sugar_translate label=$params.label module=$module}
</th>
{/if}
{/foreach}
<th width="1%"></td>
</tr>
{foreach name=rowIteration from=$DATA key=id item=bean}
{counter name="offset" print=false}
{if $smarty.foreach.rowIteration.iteration is odd}
{assign var='_bgColor' value=$bgColor[0]}
{assign var='_rowColor' value=$rowColor[0]}
{assign var='_class' value='oddListRowS1'}
{else}
{assign var='_bgColor' value=$bgColor[1]}
{assign var='_rowColor' value=$rowColor[1]}
{assign var='_class' value='evenListRowS1'}
{/if}
<tr height='20' onmouseover="setPointer(this, '{$rowData.id}', 'over', '{$_bgColor}', '{$bgHilite}', '');" onmouseout="setPointer(this, '{$rowData.ID}', 'out', '{$_bgColor}', '{$bgHilite}', '');" onmousedown="setPointer(this, '{$rowData.id}', 'click', '{$_bgColor}', '{$bgHilite}', '');" class="{$_class}">
<td valign="top" scope="row" NOWRAP>
<input vertical-align="middle" type="radio" name="{$source_id}_id" value="{$bean->data_source_id}">
</td>
{foreach from=$displayColumns key=colHeader item=params}
{if $colHeader != 'id'}
<td valign="top" scope="row">{sugar_connector_display bean=$bean field=$colHeader source=$source_id}</td>
{/if}
{/foreach}
<td scope="row"><span id='adspan_{$bean->id}' onmouseout="return clear_source_details()" onmouseover="get_source_details('{$source_id}', '{$bean->id}', 'adspan_{$bean->id}')" onmouseout="return nd(1000);" vertical-align="middle"><img src="{sugar_getimagepath file="info_inline.png"}" vertical-align="middle"></span></td>
</tr>
{/foreach}
</table>

View File

@@ -0,0 +1,84 @@
{*
/*********************************************************************************
* 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="{$source_id}_add_tables" class="sources_table_div">
{foreach from=$display_data key=module item=data}
<table border="0">
<tr>
<td colspan="2"><span><font size="3">{$module}</font></span></td></tr>
<tr>
<td width="150px"><b>{$mod.LBL_CONNECTOR_FIELDS}</b></td>
<td><b>{$mod.LBL_MODULE_FIELDS}</b></td>
</tr>
</table>
<table border="0" name="{$module}" id="{$module}" class="mapping_table">
<tr>
<td colspan="2">
{foreach from=$data.field_keys key=field_id item=field}
{if $field_id != 'id'}
<div id="{$source_id}:{$module}:{$field}_div" style="width:500px; display:block; cursor:pointer">
<table border="0" cellpadding="1" cellspacing="1">
<tr>
<td width="150px">
{$field}
</td>
<td>
<select id="{$source_id}:{$module}:{$field_id}">
<option value="">---</option>
{foreach from=$data.available_fields key=available_field_id item=available_field}
<option value="{$available_field_id}" {if $data.field_mapping.$field_id == $available_field_id}SELECTED{/if}>{$available_field}</option>
{/foreach}
</select>
</td>
</tr>
</table>
</div>
{/if}
{/foreach}
</td>
</tr>
</table>
<hr/>
{/foreach}
</div>
{if $empty_mapping}
<h3>{$mod.ERROR_NO_SEARCHDEFS_DEFINED}</h3>
{/if}

View File

@@ -0,0 +1,187 @@
{*
/*********************************************************************************
* 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_grp_yui_widgets.js'}"></script>
<script type="text/javascript" src="{sugar_getjspath file='modules/Connectors/Connector.js'}"></script>
<link rel="stylesheet" type="text/css" href="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
{literal}
<script language="javascript">
var _sourceArray = new Array();
var SourceTabs = {
init : function() {
_tabView = new YAHOO.widget.TabView();
{/literal}
{counter assign=source_count start=0 print=0}
{foreach name=connectors from=$SOURCES key=name item=source}
{counter assign=source_count}
{literal}
tab = new YAHOO.widget.Tab({
label: '{/literal}{$source.name}{literal} ',
dataSrc: {/literal}'index.php?module=Connectors&action=DisplayProperties&source_id={$source.id}'{literal},
cacheData: true,
{/literal}
{if $source_count == 1}
active: true
{else}
active: false
{/if}
{literal}
});
_tabView.addTab(tab);
tab.addListener('contentChange', SourceTabs.tabContentChanged);
_sourceArray[{/literal}{$source_count}{literal}-1] = '{/literal}{$source.id}{literal}';
{/literal}
{/foreach}
{literal}
_tabView.appendTo('container');
//_tabView.addListener('contentChange', SourceTabs.tabContentChanged);
_tabView.addListener('beforeActiveTabChange', SourceTabs.tabIndexChanged);
},
tabContentChanged: function(info) {
tab = _tabView.get('activeTab');
SUGAR.util.evalScript(tab.get('content'));
},
tabIndexChanged : function(info){
},
fitContainer: function() {
_tabView = SourceTabs.getTabView();
content_div = _tabView.getElementsByClassName('yui-content', 'div')[0];
content_div.style.overflow='auto';
content_div.style.height='405px';
},
getTabView : function() {
return _tabView;
}
}
YAHOO.util.Event.onDOMReady(SourceTabs.init);
</script>
{/literal}
<form name="ModifyDisplay" method="POST">
<input type="hidden" name="modify" value="true">
<input type="hidden" name="module" value="Connectors">
<input type="hidden" name="action" value="SaveModifyDisplay">
{counter assign=source_count start=0 print=0}
{foreach name=connectors from=$SOURCES key=name item=source}
{counter assign=source_count}
<input type="hidden" name="source{$source_count}" value="{$source.id}">
{/foreach}
<input type="hidden" name="display_values" value="">
<input type="hidden" name="display_sources" value="">
<input type="hidden" name="reset_to_default" value="">
<table border="0">
<tr><td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" onclick="calculateValues();" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ModifyDisplay.action.value='ConnectorSettings'; document.ModifyDisplay.module.value='Connectors';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td></tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td>
<div >
<div id="container" style="height: 465px">
</div>
</div>
</td></tr>
</table>
<table border="0">
<tr><td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" onclick="calculateValues();" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ModifyDisplay.action.value='ConnectorSettings'; document.ModifyDisplay.module.value='Connectors';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td></tr>
</table>
</form>
<script type="text/javascript">
{literal}
YAHOO.util.Event.onDOMReady(SourceTabs.fitContainer);
{/literal}
</script>
<script type="text/javascript">
{literal}
function calculateValues() {
tabview = SourceTabs.getTabView();
display_vals = ''
source_vals = '';
sources = new Array();
//Get the source divs
elements = tabview.getElementsByClassName('sources_table', 'table');
for(el in elements) {
if(typeof elements[el] == 'function') {
continue;
}
source_vals += ',' + elements[el].id;
}
//Get the enabled div elements
elements = tabview.getElementsByClassName('enabled_module_workarea', 'div');
for(el in elements) {
if(typeof elements[el] == 'function') {
continue;
}
//Get the li elements
enabled_list = YAHOO.util.Dom.getElementsByClassName('noBullet2', 'li', elements[el]);
for(li in enabled_list) {
if(typeof enabled_list[li] != 'function') {
display_vals += ',' + enabled_list[li].getAttribute('id');
}
}
}
document.ModifyDisplay.display_values.value = display_vals != '' ? display_vals.substr(1,display_vals.length) : '';
document.ModifyDisplay.display_sources.value = source_vals != '' ? source_vals.substr(1, source_vals.length) : '';
}
YAHOO.util.Event.onDOMReady(SourceTabs.fitContainer);
{/literal}
</script>

View 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".
********************************************************************************/
*}
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_yui_widgets.js'}"></script>
<script type="text/javascript" src="{sugar_getjspath file='modules/Connectors/Connector.js'}"></script>
<link rel="stylesheet" type="text/css" href="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
{literal}
<script language="javascript">
var _sourceArray = new Array();
var SourceTabs = {
init : function() {
_tabView = new YAHOO.widget.TabView();
{/literal}
{counter assign=source_count start=0 print=0}
{foreach name=connectors from=$SOURCES key=name item=source}
{counter assign=source_count}
{literal}
tab = new YAHOO.widget.Tab({
label: '{/literal}{$source.name}{literal} ',
dataSrc: {/literal}'index.php?module=Connectors&action=MappingProperties&source_id={$source.id}'{literal},
cacheData: true,
{/literal}
{if $source_count == 1}
active: true
{else}
active: false
{/if}
{literal}
});
_sourceArray[{/literal}{$source_count}{literal}-1] = '{/literal}{$source.id}';
tab.addListener('contentChange', SourceTabs.tabContentChanged);
tab.id = '{$source.id}';
_tabView.addTab(tab);
{/foreach}
{literal}
_tabView.appendTo('container');
},
tabContentChanged: function(info) {
tab = _tabView.get('activeTab');
SUGAR.util.evalScript(tab.get('content'));;
},
fitContainer: function() {
_tabView = SourceTabs.getTabView();
content_div = _tabView.getElementsByClassName('yui-content', 'div')[0];
content_div.style.overflow='auto';
content_div.style.height='405px';
},
getTabView : function() {
return _tabView;
}
}
YAHOO.util.Event.onDOMReady(SourceTabs.init);
</script>
{/literal}
<form name="ModifyMapping" method="POST" onsubmit="return calculateValues();">
<input type="hidden" name="modify" value="true">
<input type="hidden" name="module" value="Connectors">
<input type="hidden" name="action" value="SaveModifyMapping">
<input type="hidden" name="source_id" value="">
{counter assign=source_count start=0 print=0}
{foreach name=connectors from=$SOURCES key=name item=source}
{counter assign=source_count}
<input type="hidden" name="source{$source_count}" value="{$source.id}">
{/foreach}
<input type="hidden" name="mapping_values" value="">
<input type="hidden" name="mapping_sources" value="">
<input type="hidden" name="reset_to_default" value="">
<table border="0">
<tr><td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ModifyMapping.action.value='ConnectorSettings'; document.ModifyMapping.module.value='Connectors';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td></tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td>
<div>
<div id="container" style="height: 465px">
</div>
</div>
</td></tr>
</table>
<table border="0">
<tr><td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ModifyMapping.action.value='ConnectorSettings'; document.ModifyMapping.module.value='Connectors';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td></tr>
</table>
</form>
{literal}
<script type="text/javascript">
function calculateValues() {
tabview = SourceTabs.getTabView();
mapping_vals = ''
source_vals = '';
sources = new Array();
//Get the source divs
elements = tabview.getElementsByClassName('sources_table_div', 'div');
for(el in elements) {
//Fix for IE6
if(typeof elements[el] == 'function') {
continue;
}
div_id = elements[el].getAttribute('id');
source_id = div_id.substr(0, div_id.indexOf('_add_tables'));
if(sources[source_id] == null) {
sources[source_id] = source_id;
source_vals += ',' + source_id;
}
}
//Get the table elements
tables = tabview.getElementsByClassName('mapping_table', 'table');
for(t in tables) {
//Fix for IE6
if(typeof tables[t] == 'function') {
continue;
}
select_elements = tables[t].getElementsByTagName("select");
for(el in select_elements) {
select_dom = document.getElementById(select_elements[el].id);
if(select_dom != null && select_elements[el].value != '') {
mapping_vals += ',' + select_elements[el].getAttribute('id') + '=' + select_elements[el].value;
}
}
}
document.ModifyMapping.mapping_values.value = mapping_vals != '' ? mapping_vals.substr(1, mapping_vals.length) : '';
document.ModifyMapping.mapping_sources.value = source_vals != '' ? source_vals.substr(1, source_vals.length) : '';
return true;
}
YAHOO.util.Event.onDOMReady(SourceTabs.fitContainer);
</script>
{/literal}

View File

@@ -0,0 +1,154 @@
{*
/*********************************************************************************
* 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_grp_yui_widgets.js'}"></script>
<script type="text/javascript" src="{sugar_getjspath file='modules/Connectors/Connector.js'}"></script>
<link rel="stylesheet" type="text/css" href="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
{literal}
<script language="javascript">
var _tabView;
var _timer;
var _sourceArray = new Array();
var SourceTabs = {
init : function() {
_tabView = new YAHOO.widget.TabView();
{/literal}
{counter assign=source_count start=0 print=0}
{foreach name=connectors from=$SOURCES key=name item=source}
{counter assign=source_count}
{literal}
tab = new YAHOO.widget.Tab({
label: '{/literal}{$source.name}{literal} ',
dataSrc: {/literal}'index.php?module=Connectors&action=SourceProperties&source_id={$source.id}&to_pdf=true'{literal},
cacheData: true,
{/literal}
{if $source_count == 1}
active: true
{else}
active: false
{/if}
{literal}
});
{/literal}
_tabView.addTab(tab);
tab.id = '{$source.id}';
//tab.addListener('beforeContentChange', SourceTabs.tabClicked);
tab.addListener('click', SourceTabs.afterContentChange);
_sourceArray[{$source_count}-1] = '{$source.id}';
{/foreach}
{literal}
_tabView.appendTo('container');
},
afterContentChange: function(info) {
if(typeof validate != 'undefined') {
validate = new Array();
validate["ModifyProperties"] = new Array();
}
tab = _tabView.get('activeTab');
if(typeof tab.get('content') != 'undefined') {
SUGAR.util.evalScript(tab.get('content'));
clearTimeout(_timer);
} else {
_timer = setTimeout(SourceTabs.afterContentChange, 1000);
}
},
fitContainer: function() {
content_div = _tabView.getElementsByClassName('yui-content', 'div')[0];
content_div.style.overflow='auto';
content_div.style.height='405px';
}
}
YAHOO.util.Event.onDOMReady(SourceTabs.init);
</script>
{/literal}
<form name="ModifyProperties" method="POST">
<input type="hidden" name="modify" value="true">
<input type="hidden" name="module" value="Connectors">
<input type="hidden" name="action" value="SaveModifyProperties">
<input type="hidden" name="source_id" value="">
<input type="hidden" name="reset_to_default" value="">
{counter assign=source_count start=0 print=0}
{foreach name=connectors from=$SOURCES key=name item=source}
{counter assign=source_count}
<input type="hidden" name="source{$source_count}" value="{$source.id}">
{/foreach}
<table border="0">
<tr><td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" onclick="return check_form('ModifyProperties') || confirm('{$mod.LBL_CONFIRM_CONTINUE_SAVE}');">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ModifyProperties.action.value='ConnectorSettings'; document.ModifyProperties.module.value='Connectors';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td></tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td class="tabDetailViewDF">
<div >
<div id="container" style="height: 465px">
</div>
</div>
</td></tr>
</table>
<table border="0">
<tr><td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" onclick="return check_form('ModifyProperties') || confirm('{$mod.LBL_CONFIRM_CONTINUE_SAVE}');">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ModifyProperties.action.value='ConnectorSettings'; document.ModifyProperties.module.value='Connectors';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td></tr>
</table>
</form>
<script type="text/javascript">
{literal}
YAHOO.util.Event.onDOMReady(SourceTabs.fitContainer);
{/literal}
{foreach name=required_fields from=$REQUIRED_FIELDS key=id item=fields}
{foreach from=$fields key=field_key item=field_label}
addToValidate("ModifyProperties", "{$id}_{$field_key}", "alpha", true, "{$field_label}");
{/foreach}
{/foreach}
</script>

View 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".
********************************************************************************/
*}
<script type="text/javascript" src="{sugar_getjspath file='include/javascript/sugar_grp_yui_widgets.js'}"></script>
<script type="text/javascript" src="{sugar_getjspath file='modules/Connectors/Connector.js'}"></script>
<link rel="stylesheet" type="text/css" href="{sugar_getjspath file='modules/Connectors/tpls/tabs.css'}"/>
{literal}
<script language="javascript">
var _sourceArray = new Array();
var SourceTabs = {
init : function() {
_tabView = new YAHOO.widget.TabView();
{/literal}
{counter assign=source_count start=0 print=0}
{foreach name=connectors from=$SOURCES item=source}
{counter assign=source_count}
{literal}
tab = new YAHOO.widget.Tab({
label: '{/literal}{$source.name}{literal} ',
dataSrc: {/literal}'index.php?module=Connectors&action=SearchProperties&source_id={$source.id}'{literal},
cacheData: true,
{/literal}
{if $source_count == 1}
active: true
{else}
active: false
{/if}
{literal}
});
_sourceArray[{/literal}{$source_count}{literal}-1] = '{/literal}{$source.id}';
tab.addListener('contentChange', SourceTabs.tabContentChanged);
tab.id = '{$source.id}';
_tabView.addTab(tab);
{/foreach}
{literal}
_tabView.appendTo('container');
},
tabContentChanged: function(info) {
tab = _tabView.get('activeTab');
SUGAR.util.evalScript(tab.get('content'));
},
fitContainer: function() {
_tabView = SourceTabs.getTabView();
content_div = _tabView.getElementsByClassName('yui-content', 'div')[0];
content_div.style.overflow='auto';
content_div.style.height='405px';
},
getTabView : function() {
return _tabView;
}
}
YAHOO.util.Event.onDOMReady(SourceTabs.init);
</script>
{/literal}
<form name="ModifySearch" method="POST">
<input type="hidden" name="modify" value="true">
<input type="hidden" name="module" value="Connectors">
<input type="hidden" name="action" value="SaveModifySearch">
<input type="hidden" name="source_id" value="">
{counter assign=source_count start=0 print=0}
{if count($SOURCES) == 0}
{$MOD.ERROR_NO_SEARCHDEFS_MAPPED}
{else}
{foreach name=connectors from=$SOURCES key=name item=source}
{counter assign=source_count}
<input type="hidden" name="source{$source_count}" value="{$source.id}">
{/foreach}
{/if}
<input type="hidden" name="search_values" value="">
<input type="hidden" name="search_sources" value="">
<input type="hidden" name="reset_to_default" value="">
<table border="0">
<tr><td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" onclick="calculateValues();" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ModifySearch.action.value='ConnectorSettings'; document.ModifySearch.module.value='Connectors';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td></tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td>
<div>
<div id="container" style="height: 465px">
</div>
</div>
</td></tr>
</table>
<table border="0">
<tr><td>
<input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_TITLE}" class="button" onclick="calculateValues();" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">
<input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="document.ModifySearch.action.value='ConnectorSettings'; document.ModifySearch.module.value='Connectors';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
</td></tr>
</table>
</form>
<script type="text/javascript">
{literal}
function calculateValues() {
tabview = SourceTabs.getTabView();
search_vals = ''
source_vals = '';
sources = new Array();
//Get the source divs
elements = tabview.getElementsByClassName('sources_table_div', 'div');
for(el in elements) {
if(typeof elements[el] == 'function') {
continue;
}
div_id = elements[el].getAttribute('id');
source_id = div_id.substr(0, div_id.indexOf('_add_tables'));
if(sources[source_id] == null) {
sources[source_id] = source_id;
source_vals += ',' + source_id;
}
}
//Get the enabled div elements
elements = tabview.getElementsByClassName('enabled_workarea', 'div');
for(el in elements) {
if(typeof elements[el] == 'function') {
continue;
}
//Get the li elements
enabled_list = YAHOO.util.Dom.getElementsByClassName('noBullet2', 'li', elements[el]);
for(li in enabled_list) {
if(typeof enabled_list[li] != 'function') {
search_vals += ',' + enabled_list[li].getAttribute('id');
}
}
}
document.ModifySearch.search_values.value = search_vals != '' ? search_vals.substr(1,search_vals.length) : '';
document.ModifySearch.search_sources.value = source_vals != '' ? source_vals.substr(1, source_vals.length) : '';
}
YAHOO.util.Event.onDOMReady(SourceTabs.fitContainer);
{/literal}
</script>

View File

@@ -0,0 +1,71 @@
{*
/*********************************************************************************
* 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 class="h3Row" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap>
<h3>{$mod.LBL_MODIFY_SEARCH}</h3></td><td width='100%'>
<IMG height='1' width='1' src='include/images/blank.gif' alt=''>
</td>
</tr>
</table>
<form name='SearchForm' method='POST' id='SearchForm'>
<input type='hidden' name='source_id' id='source_id' value='{$source_id}' />
<input type='hidden' name='merge_module' value='{$module}' />
<input type='hidden' name='record' value='{$RECORD}' />
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="tabForm">
{if !empty($search_fields) }
<tr>
{counter assign=field_count start=0 print=0}
{foreach from=$search_fields key=field_name item=field_value}
{counter assign=field_count}
{if ($field_count % 3 == 1 && $field_count != 1)}
</tr><tr>
{/if}
<td nowrap="nowrap" width='10%' class="dataLabel">
{$field_value.label}:
</td>
<td nowrap="nowrap" width='30%' class="dataField">
<input type='text' onkeydown='checkKeyDown(event);' name='{$field_name}' value='{$field_value.value}'/>
</td>
{/foreach}
{else}
{$mod.ERROR_NO_SEARCHDEFS_MAPPING}
{/if}
</table>
<input type='button' name='btn_search' id='btn_search' title="{$APP.LBL_SEARCH_BUTTON_LABEL}" accessKey="{$APP.LBL_SEARCH_BUTTON_KEY}" class="button" onClick="javascript:SourceTabs.search();" value=" {$APP.LBL_SEARCH_BUTTON_LABEL} "/>&nbsp;
<input type='button' name='btn_clear' title="{$APP.LBL_CLEAR_BUTTON_LABEL}" accessKey="{$APP.LBL_CLEAR_BUTTON_KEY}" class="button" onClick="javascript:SourceTabs.clearForm();" value="{$APP.LBL_CLEAR_BUTTON_LABEL}"/>
</form>

View File

@@ -0,0 +1,220 @@
{*
/*********************************************************************************
* 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="{$source_id}_add_tables" class="sources_table_div">
{foreach from=$display_data key=module item=data}
<table border="0" cellspacing="1" cellpadding="1" name="{$module}" id="{$module}">
<tr>
<td colspan="2"><span><font size="3">{$module}</font></span></td>
</tr>
<tr>
<td><b>{$mod.LBL_DEFAULT}</b></td>
<td><b>{$mod.LBL_AVAILABLE}</b></td>
</tr>
<tr>
<td>
<div class="enabled_workarea" id="{$source_id}:{$module}:enabled_div">
<ul class="draglist" id="{$source_id}:{$module}:enabled_ul">
{foreach from=$data.enabled key=enabled_id item=enabled_value}
<li class="noBullet2" id="{$source_id}:{$module}:{$enabled_id}">{$enabled_value}</li>
{/foreach}
</ul>
</div>
</td>
<td>
<div class="disabled_workarea" id="{$source_id}:{$module}:disabled_div">
<ul class="draglist" id="{$source_id}:{$module}:disabled_ul">
{foreach from=$data.disabled key=disabled_id item=disabled_value}
<li class="noBullet2" id="{$source_id}:{$module}:{$disabled_id}">{$disabled_value}</li>
{/foreach}
</ul>
</div>
</td>
</tr>
</table>
<hr/>
{/foreach}
</div>
<script type="text/javascript">
{literal}
var Dom = YAHOO.util.Dom;
var Event = YAHOO.util.Event;
var DDM = YAHOO.util.DragDropMgr;
(function() {
YAHOO.example.DDApp = {
init: function() {
{/literal}
{foreach from=$modules_sources key=module item=field_defs}
new YAHOO.util.DDTarget("{$source_id}:{$module}:enabled_ul");
new YAHOO.util.DDTarget("{$source_id}:{$module}:disabled_ul");
{foreach from=$field_defs key=index item=field}
new YAHOO.example.DDList("{$source_id}:{$module}:{$index}");
{/foreach}
{/foreach}
{literal}
}
};
YAHOO.example.DDList = function(id, sGroup, config) {
YAHOO.example.DDList.superclass.constructor.call(this, id, sGroup, config);
var el = this.getDragEl();
Dom.setStyle(el, "opacity", 0.67);
this.goingUp = false;
this.lastY = 0;
};
YAHOO.extend(YAHOO.example.DDList, YAHOO.util.DDProxy, {
startDrag: function(x, y) {
// make the proxy look like the source element
var dragEl = this.getDragEl();
var clickEl = this.getEl();
Dom.setStyle(clickEl, "visibility", "hidden");
dragEl.innerHTML = clickEl.innerHTML;
Dom.setStyle(dragEl, "color", Dom.getStyle(clickEl, "color"));
Dom.setStyle(dragEl, "backgroundColor", Dom.getStyle(clickEl, "backgroundColor"));
Dom.setStyle(dragEl, "border", "2px solid gray");
Dom.setStyle(dragEl, "cursor", "pointer");
},
endDrag: function(e) {
var srcEl = this.getEl();
var proxy = this.getDragEl();
// Show the proxy element and animate it to the src element's location
Dom.setStyle(proxy, "visibility", "");
var a = new YAHOO.util.Motion(
proxy, {
points: {
to: Dom.getXY(srcEl)
}
},
0.2,
YAHOO.util.Easing.easeOut
)
var proxyid = proxy.id;
var thisid = this.id;
// Hide the proxy and show the source element when finished with the animation
a.onComplete.subscribe(function() {
Dom.setStyle(proxyid, "visibility", "hidden");
Dom.setStyle(thisid, "visibility", "");
});
a.animate();
},
onDragDrop: function(e, id) {
// If there is one drop interaction, the li was dropped either on the list,
// or it was dropped on the current location of the source element.
if (typeof(DDM.interactionInfo) != 'undefined' && DDM.interactionInfo.drop.length === 1) {
// The position of the cursor at the time of the drop (YAHOO.util.Point)
var pt = DDM.interactionInfo.point;
// The region occupied by the source element at the time of the drop
var region = DDM.interactionInfo.sourceRegion;
// Check to see if we are over the source element's location. We will
// append to the bottom of the list once we are sure it was a drop in
// the negative space (the area of the list without any list items)
if (!region.intersect(pt)) {
var destEl = Dom.get(id);
var destDD = DDM.getDDById(id);
destEl.appendChild(this.getEl());
destDD.isEmpty = false;
DDM.refreshCache();
}
}
},
onDrag: function(e) {
// Keep track of the direction of the drag for use during onDragOver
var y = Event.getPageY(e);
if (y < this.lastY) {
this.goingUp = true;
} else if (y > this.lastY) {
this.goingUp = false;
}
this.lastY = y;
},
onDragOver: function(e, id) {
var srcEl = this.getEl();
var destEl = Dom.get(id);
if (destEl.nodeName.toLowerCase() == "li") {
var orig_p = srcEl.parentNode;
var p = destEl.parentNode;
if (this.goingUp) {
p.insertBefore(srcEl, destEl); // insert above
} else {
p.insertBefore(srcEl, destEl.nextSibling); // insert below
}
DDM.refreshCache();
} else if(destEl.nodeName.toLowerCase() == "ul") {
var p = destEl.parentNode;
blank_list = p.lastChild;
if(!blank_list.id) {
destEl.appendChild(srcEl);
} else {
blank_list.insertBefore(srcEl, destEl.nextSibling);
}
DDM.refreshCache();
}
}
});
YAHOO.util.Event.onDOMReady(function(){
YAHOO.example.DDApp.init();
});
})();
{/literal}
</script>
{if $no_searchdefs_defined}
<h3>{$mod.ERROR_NO_SEARCHDEFS_DEFINED}</h3>
{/if}

View File

@@ -0,0 +1,81 @@
{*
/*********************************************************************************
* 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".
********************************************************************************/
*}
<br/>
{if !empty($connector_language.LBL_LICENSING_INFO)}
{$connector_language.LBL_LICENSING_INFO}
{/if}
<br/>
<table width="100%" border="0" cellspacing="1" cellpadding="0" >
{if !empty($properties)}
{foreach from=$properties key=name item=value}
<tr>
<td class="dataLabel" width="35%">
{$connector_language[$name]}:&nbsp;
{if isset($required_properties[$name])}
<span class="required">*</span>
{/if}
</td>
<td class="dataLabel" width="65%">
<input type="text" id="{$source_id}_{$name}" name="{$source_id}_{$name}" size="75" value="{$value}"></td>
</tr>
{/foreach}
{if $hasTestingEnabled}
<tr>
<td class="dataLabel" colspan="2">
<input id="{$source_id}_test_button" type="button" class="button" value=" {$mod.LBL_TEST_SOURCE} " onclick="run_test('{$source_id}');">
</td>
</tr>
<tr>
<td class="dataLabel" colspan="2">
<span id="{$source_id}_result">&nbsp;</span>
</td>
</tr>
{/if}
{else}
<tr>
<td class="dataLabel" colspan="2">&nbsp;</td>
<td class="dataLabel" colspan="2">{$mod.LBL_NO_PROPERTIES}</td>
</tr>
{/if}
</table>
<script type="text/javascript">
{foreach from=$required_properties key=id item=label}
addToValidate("ModifyProperties", "{$source_id}_{$id}", "alpha", true, "{$label}");
{/foreach}
</script>

View File

@@ -0,0 +1,91 @@
{*
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004 - 2009 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}}
{* -- Begin QuickCreate Specific -- *}
<input type="hidden" name="primary_address_street" value="{$smarty.request.primary_address_street}">
<input type="hidden" name="primary_address_city" value="{$smarty.request.primary_address_city}">
<input type="hidden" name="primary_address_state" value="{$smarty.request.primary_address_state}">
<input type="hidden" name="primary_address_country" value="{$smarty.request.primary_address_country}">
<input type="hidden" name="primary_address_postalcode" value="{$smarty.request.primary_address_postalcode}">
<input type="hidden" name="phone_work" value="{$smarty.request.phone_work}">
<input type="hidden" name="is_ajax_call" value="1">
<input type="hidden" name="to_pdf" value="1">
{* -- End QuickCreate Specific -- *}
{{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>

80
modules/Currencies/EditView.tpl Executable file
View 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".
********************************************************************************/
/*********************************************************************************
********************************************************************************/
*}
<script type="text/javascript">
js_iso4217 = {$JS_ISO4217};
</script>
<script type="text/javascript" src="modules/Currencies/EditView.js"></script>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="edit view">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" scope="row" nowrap><slot>{$MOD.LBL_LIST_NAME}: <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td width="35%"><slot><input name='name' tabindex='1' size='30' maxlength='50' type="text" value="{$NAME}"></slot></td>
<td width="15%" scope="row" nowrap><slot>{$MOD.LBL_LIST_ISO4217}:&nbsp;{sugar_help text=$MOD.LBL_LIST_ISO4217_HELP}</slot></td>
<td width="35%"><slot><input name='iso4217' tabindex='1' size='3'
maxlength='3' type="text" value="{$ISO4217}" onKeyUp='isoUpdate(this);'></slot></td>
</tr>
<tr>
</tr>
<tr>
<td width="15%" scope="row" nowrap><slot> {$MOD.LBL_LIST_RATE}: <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td width="35%"><slot><input name='conversion_rate' tabindex='1' size='30' maxlength='50' type="text" value="{$CONVERSION_RATE}">
<img border="0" src="index.php?entryPoint=getImage&themeName={$THEME}&imageName=helpInline.gif" onmouseover="return overlib('{$MOD.LBL_LIST_RATE_HELP}', FGCLASS, 'olFgClass', CGCLASS, 'olCgClass', BGCLASS, 'olBgClass', TEXTFONTCLASS, 'olFontClass', CAPTIONFONTCLASS, 'olCapFontClass', CLOSEFONTCLASS, 'olCloseFontClass', WIDTH, -1, NOFOLLOW, 'ol_nofollow' );" onmouseout="return nd();"/>
</slot></td>
<td width="15%" scope="row" nowrap><slot>{$MOD.LBL_LIST_SYMBOL}: <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td width="35%"><slot><input name='symbol' tabindex='1' size='3' maxlength='50' type="text" value="{$SYMBOL}"></slot></td>
</tr>
<tr>
</tr>
<tr>
<td scope="row"><slot>{$MOD.LBL_LIST_STATUS}:</slot></td>
<td><slot><select name='status' tabindex='1'>{$STATUS_OPTIONS}</select> <em>{$MOD.NTC_STATUS}</em></slot></td>
</tr></table>
</td>
</tr>
</table>
<input type='hidden' name='record' value='{$ID}'>
</form>
{$JAVASCRIPT}

View File

@@ -0,0 +1,4 @@
{foreach from=$PARENT_LIST key=k item=v}
<li><a href="index.php?module={$v.parent_type}s&action=DetailView&record={$v.parent_id}">{$v.parent_name}</a></li>
{/foreach}

View File

@@ -0,0 +1,31 @@
<input type="hidden" name="parent_list" id="parent_list" value='{$PARENT_LIST}'>
<input type="hidden" name="parent_type_list" id="parent_type_list" value='{$PARENT_TYPE_LIST|@json_encode}'>
<button class="btn btn-info" type="button" id="AddMoreWWWBox" value="Dodaj">
<img src="themes/default/images/id-ff-add.png?s=bed8cd35065048ceebdc639ebe305e2c&amp;c=1"></button>
<table id="InputsWrapper">
<tr><td><select id="parent_type_1" name="parent_type[]">
{foreach from=$PARENT_TYPE_LIST key=k item=v}
<option value="{$k}" label="{$v}">{$v}</OPTION>
{/foreach}
</select>
<input type="hidden" value="" id="parent_id_1" name="parent_id[]">
<input type="hidden" value="" name="list_id[]">
&nbsp;<input type="text" value="" size="30" id="parent_name_1" name="parent_name[]">
<a class="removeclass" href="#"></td><td style="vertical-align: top;">
<img class="id-ff-remove" name="0" src="index.php?entryPoint=getImage&amp;themeName=Sugar5&amp;imageName=id-ff-remove.png"></a>
<button onclick="
{literal} open_popup( $('#parent_type_1').val(), 600, 400, &quot;&quot;, true, false,
{&quot;call_back_function&quot;:&quot;set_return&quot;,&quot;form_name&quot;:&quot;EditView&quot;,&quot;field_to_name_array&quot;:
{&quot;id&quot;:&quot;parent_id_1&quot;,&quot;name&quot;:&quot;parent_name_1&quot;}}, &quot;single&quot;, true);"
{/literal}
value="Wybierz" class="button firstChild" accesskey="T" title="Wybierz [Alt+T]" tabindex="101" id="btn_parent_name" name="btn_parent_name" style="vertical-align: top;" type="button">
<img src="themes/default/images/id-ff-select.png?s=bed8cd35065048ceebdc639ebe305e2c&amp;c=1"></button>
<button value="Wyczyść" onclick="{literal} $('#parent_name_1').val(''); $('#parent_id_1').val('');{/literal}" class="button lastChild" style="vertical-align: top;" accesskey="C" title="Wyczyść[Alt+C]" tabindex="101" id="btn_clr_parent_name" name="btn_clr_parent_name" type="button">
<img src="themes/default/images/id-ff-clear.png?s=bed8cd35065048ceebdc639ebe305e2c&amp;c=1"></button></td></tr>
<script>
{literal}
rebuildAutocomplete(1);
{/literal}
</script>
</table>

View File

@@ -0,0 +1,158 @@
{foreach from=$USER_LIST key=k item=v}
<li>
<a href="index.php?module=Users&action=DetailView&record={$v.user_id}">{$v.user_name}</a>
{*brak akceptacji*}
{if $v.accepted == '0'}
{*brak akceptacji i brak opisu i jest sie zalogowanym uzytkownikiem*}
{if $v.accepted_description == '' && $v.user_id eq $CURRENT_USER}
<input type="button" id="userListButton"
value="Akceptuj" onclick="$('#userDiv').toggle('slow');">
<div id="userDiv" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
<textarea id="userAcceptDes" rows="4" style="width: 100%"></textarea>
<select id="statusik">
<option value='1'>Akceptuj</option>
<option value='0'>Oczekuj</option>
<option value='2'>Odrzuć</option>
</select>
<input type="button"
id="userSaveDes"
value="Zapisz"
onclick="location.href = 'index.php?module=Documents&action=accept&status=' + $('#statusik :selected').val() + '&record={$v.id}&user_id={$v.user_id}&doc_id={$v.document_id}&des=' + $('#userAcceptDes').val() + ''"
>
<input type="button" id="userListCancel" value="Anuluj" onclick="$('#userDiv').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{/if}
{*brak akceptacji i jest opis i jest sie zalogowanym uzytkownikiem*}
{if $v.accepted_description != '' && $v.user_id eq $CURRENT_USER}
<input type="button" id="userListButton"
value="Zmień status" onclick="$('#userDiv').toggle('slow');">
Status: Oczekuje {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
<div id="userDiv" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{$v.accepted_description|replace:'XVZC':'<br>'}
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
<textarea id="userAcceptDes" rows="4" style="width: 100%"></textarea>
<select id="statusik">
<option value='1'>Akceptuj</option>
<option value='0'>Oczekuj</option>
<option value='2'>Odrzuć</option>
</select>
<input type="button"
id="userSaveDes"
value="Zapisz"
onclick="location.href = 'index.php?module=Documents&action=accept&status=' + $('#statusik :selected').val() + '&record={$v.id}&user_id={$v.user_id}&doc_id={$v.document_id}&des=' + $('#userAcceptDes').val() + ''"
>
<input type="button" id="userListCancel" value="Anuluj" onclick="$('#userDiv').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{elseif $v.accepted_description != '' }
<input type="button" id="userListButton"
value="Pokaż opis" onclick="$('#userDiv').toggle('slow');">
Status: Oczekuje {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
<div id="userDiv" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
{$v.accepted_description|replace:'XVZC':'<br>'}
</td>
</tr>
<tr>
<td>
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDiv').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{/if}
{/if}
{*Jest akceptacja bądź odrzucony*}
{if $v.accepted == '1'}
<input type="button" id="userShowDes"
value="Pokaż opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
Status: Zaakceptowano {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
<div id="userDess_{$v.id}" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
{$v.accepted_description|replace:'XVZC':'<br>'}
</td>
</tr>
<tr>
<td>
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{/if}
{if $v.accepted == '2'}
<input type="button" id="userShowDes"
value="Pokaż opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
Status: Odrzucono {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
<div id="userDess_{$v.id}" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
{$v.accepted_description|replace:'XVZC':'<br>'}
</td>
</tr>
<tr>
<td>
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{/if}</li>
{/foreach}

View File

@@ -0,0 +1,25 @@
<input type="hidden" name="user_list" id="user_list" value='{$USER_LIST}'>
<input type="hidden" name="user_type_list" id="user_type_list" value='{$USER_TYPE_LIST|@json_encode}'>
<button class="btn btn-info" type="button" id="AddMoreUSERBox" value="Dodaj">
<img src="themes/default/images/id-ff-add.png?s=bed8cd35065048ceebdc639ebe305e2c&amp;c=1"></button>
<table id="InputsWrapper2">
<tr>
<td>&nbsp;
<input type="text" value="" size="30" id="user_name_1" name="user_name[]">
<input type="hidden" value="" name="listUser_id[]">
<input type="hidden" value="" id="user_id_1" name="user_id[]">
<input type="hidden" value="" name="accepted_description[]" id="accepted_description_1">
<input type="hidden" value="" name="accepted[]" id="accepted_1">
<input type="hidden" value="" name="date_accepted[]" id="date_accepted_1">
<a class="removeclassuser" href="#"></td><td style="vertical-align: top;"><img class="id-ff-remove" name="0" src="index.php?entryPoint=getImage&amp;themeName=Sugar5&amp;imageName=id-ff-remove.png"></a>
<button onclick="
{literal} open_popup('Users', 600, 400, &quot;&quot;, true, false,
{&quot;call_back_function&quot;:&quot;set_return&quot;,&quot;form_name&quot;:&quot;EditView&quot;,&quot;field_to_name_array&quot;:
{&quot;id&quot;:&quot;user_id_1&quot;,&quot;name&quot;:&quot;user_name_1&quot;}}, &quot;single&quot;, true);"
{/literal}
value="Wybierz" class="button firstChild" accesskey="T" title="Wybierz [Alt+T]" tabindex="101" id="btn_user_name" name="btn_user_name" style="vertical-align: top;" type="button">
<img src="themes/default/images/id-ff-select.png?s=bed8cd35065048ceebdc639ebe305e2c&amp;c=1"></button>
<button value="Wyczyść" onclick="{literal} $('#user_name_1').val(''); $('#user_id_1').val('');{/literal}" class="button lastChild" style="vertical-align: top;" accesskey="C" title="Wyczyść[Alt+C]" tabindex="101" id="btn_clr_user_name" name="btn_clr_user_name" type="button">
<img src="themes/default/images/id-ff-clear.png?s=bed8cd35065048ceebdc639ebe305e2c&amp;c=1"></button></td></tr>
</table>

View File

@@ -0,0 +1,9 @@
<table style="width: 500px;"><tbody>
<th style="text-align: right">Stawka VAT</th>
<th style="text-align: right">Wartość Netto</th>
<th style="text-align: right">Wartość VAT</tH>
</tbody>
{foreach from=$VAT_LIST key=k item=v}
<tr><td style="text-align: right">{$v.vat_value}</td><td style="text-align: right;">{$v.netto|number_format:2:".":","}</td><td style="text-align: right;">{$v.vat|number_format:2:".":","}</td></tr>
{/foreach}
</table>

View File

@@ -0,0 +1,6 @@
<script type="text/javascript" src="modules/Documents/js/DetailViewDocumentReady.js"></script>
{*<input type="hidden" id="test">
{$fields.register_date.value}<br>
<span id='categoryspan'>{$fields.category.value}</span><br>
{$fields.document_number.value}<br>
<br><br>*}

View File

@@ -0,0 +1,14 @@
<input autocomplete="off" type="text" name="register_date" id="register_date" value="{$fields.register_date.value}" size="10" maxlength="10">
<img id="date_trigger111" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
<script language="JavaScript" type="text/javascript">
Calendar.setup ({ldelim}
inputField : "register_date",
daFormat : "%d.%m.%Y %H:%M",
button : "date_trigger111",
singleClick : true,
dateStr : "",
step : 1
{rdelim}
);
</script>
<br>

View File

@@ -0,0 +1,4 @@
{foreach from=$PARENT_LIST key=k item=v}
<li><a href="index.php?module={$v.parent_type}s&action=DetailView&record={$v.parent_id}">{$v.parent_name}</a></li>
{/foreach}

View File

@@ -0,0 +1,14 @@
<input type="hidden" name="parent_list" id="parent_list" value='{$PARENT_LIST}'>
<input type="hidden" name="parent_type_list" id="parent_type_list" value='{$PARENT_TYPE_LIST|@json_encode}'>
<button
type="button"
id="AddAssociatedWith"
value="{$APP.LBL_ADD_BUTTON}"
onclick="addAssociatedWithField();"
title="{$MOD.HELP_LBL_USERACCEPT_BUTTON}">
<img src="{sugar_getimagepath file="id-ff-add.png"}">
</button>
<table id="associated_with">
</table>

View File

@@ -0,0 +1,6 @@
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;">
<table id="tableCostEdit" class="positions" style="width:100%">
</table>
</div>

View File

@@ -0,0 +1,158 @@
{foreach from=$USER_LIST key=k item=v}
<li>
<a href="index.php?module=Users&action=DetailView&record={$v.user_id}">{$v.user_name}</a>
{*brak akceptacji*}
{if $v.accepted == '0'}
{*brak akceptacji i brak opisu i jest sie zalogowanym uzytkownikiem*}
{if $v.accepted_description == '' && $v.user_id eq $CURRENT_USER}
<input type="button" id="userListButton"
value="Akceptuj" onclick="$('#userDiv').toggle('slow');">
<div id="userDiv" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
<textarea id="userAcceptDes" rows="4" style="width: 100%"></textarea>
<select id="statusik">
<option value='1'>Akceptuj</option>
<option value='0'>Oczekuj</option>
<option value='2'>Odrzuć</option>
</select>
<input type="button"
id="userSaveDes"
value="Zapisz"
onclick="location.href = 'index.php?module=Documents&action=accept&status=' + $('#statusik :selected').val() + '&record={$v.id}&user_id={$v.user_id}&doc_id={$v.document_id}&des=' + $('#userAcceptDes').val() + ''"
>
<input type="button" id="userListCancel" value="Anuluj" onclick="$('#userDiv').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{/if}
{*brak akceptacji i jest opis i jest sie zalogowanym uzytkownikiem*}
{if $v.accepted_description != '' && $v.user_id eq $CURRENT_USER}
<input type="button" id="userListButton"
value="Zmień status" onclick="$('#userDiv').toggle('slow');">
Status: Oczekuje {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
<div id="userDiv" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{$v.accepted_description|replace:'XVZC':'<br>'}
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
<textarea id="userAcceptDes" rows="4" style="width: 100%"></textarea>
<select id="statusik">
<option value='1'>Akceptuj</option>
<option value='0'>Oczekuj</option>
<option value='2'>Odrzuć</option>
</select>
<input type="button"
id="userSaveDes"
value="Zapisz"
onclick="location.href = 'index.php?module=Documents&action=accept&status=' + $('#statusik :selected').val() + '&record={$v.id}&user_id={$v.user_id}&doc_id={$v.document_id}&des=' + $('#userAcceptDes').val() + ''"
>
<input type="button" id="userListCancel" value="Anuluj" onclick="$('#userDiv').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{elseif $v.accepted_description != '' }
<input type="button" id="userListButton"
value="Pokaż opis" onclick="$('#userDiv').toggle('slow');">
Status: Oczekuje {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
<div id="userDiv" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
{$v.accepted_description|replace:'XVZC':'<br>'}
</td>
</tr>
<tr>
<td>
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDiv').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{/if}
{/if}
{*Jest akceptacja bądź odrzucony*}
{if $v.accepted == '1'}
<input type="button" id="userShowDes"
value="Pokaż opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
Status: Zaakceptowano {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
<div id="userDess_{$v.id}" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
{$v.accepted_description|replace:'XVZC':'<br>'}
</td>
</tr>
<tr>
<td>
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{/if}
{if $v.accepted == '2'}
<input type="button" id="userShowDes"
value="Pokaż opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
Status: Odrzucono {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
<div id="userDess_{$v.id}" style="display: none;">
<table>
<thead>
<tr>
<th>Opis</th>
</tr>
</thead>
<tfoot>
<tr>
<td>
{$v.accepted_description|replace:'XVZC':'<br>'}
</td>
</tr>
<tr>
<td>
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
</td>
</tr>
</tfoot>
</table>
</div>
{/if}</li>
{/foreach}

View File

@@ -0,0 +1,12 @@
<input type="hidden" name="user_list" id="user_list" value='{$USER_LIST}'>
<button
type="button"
id="AddMoreUSERBox"
value="{$APP.LBL_ADD_BUTTON}"
onclick="addUserAcceptanceField();"
title="{$MOD.HELP_LBL_USERACCEPT_BUTTON}">
<img src="{sugar_getimagepath file="id-ff-add.png"}">
</button>
<table id="user_acceptance_table">
</table>

View File

@@ -0,0 +1,19 @@
<table style="width: 500px;"><tbody>
<th style="text-align: right">Stawka VAT</th>
<th style="text-align: right">Wartość Netto</th>
<th style="text-align: right">Wartość VAT</tH>
</tbody>
{foreach from=$VAT_LIST key=k item=v}
<tr>
<td style="text-align: right">
{$v.vat_value}
</td>
<td style="text-align: right;">
{if $v.netto != 'NaN' or $v.netto != 'NaN.NaN' }{$v.netto|number_format:2:",":"."}{/if}
</td>
<td style="text-align: right;">
{$v.vat|number_format:2:",":"."}
</td>
</tr>
{/foreach}
</table>

View File

@@ -0,0 +1,85 @@
{*
/*********************************************************************************
* 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="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td>
<td>
{if $hideLevel < 5}
<input type='text' name='default' id='default' value='{$vardef.default}' maxlength='{$vardef.len|default:50}'>
{else}
<input type='hidden' id='default' name='default' value='{$vardef.default}'>{$vardef.default}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_MAX_SIZE}:</td>
<td>
{if $hideLevel < 5}
<input type='text' name='len' id='field_len' value='{$vardef.len|default:25}' onchange="forceRange(this,1,255);changeMaxLength(document.getElementById('default'),this.value);">
<input type='hidden' id="orig_len" name='orig_len' value='{$vardef.len}'>
{if $action=="saveSugarField"}
<input type='hidden' name='customTypeValidate' id='customTypeValidate' value='{$vardef.len|default:25}'
onchange="if (document.getElementById('field_len').value < document.getElementById('orig_len').value) return confirm(SUGAR.language.get('ModuleBuilder', 'LBL_CONFIRM_LOWER_LENGTH')); return true;" >
{/if}
{literal}
<script>
function forceRange(field, min, max){
field.value = parseInt(field.value);
if(field.value == 'NaN')field.value = max;
if(field.value > max) field.value = max;
if(field.value < min) field.value = min;
}
function changeMaxLength(field, length){
field.maxLength = parseInt(length);
field.value = field.value.substr(0, field.maxLength);
}
{/literal}
changeMaxLength(document.getElementById("field_name_id"), {if isset($package->name) && $package->name != "studio"}19{else}17{/if})
</script>
{else}
<input type='hidden' name='len' value='{$vardef.len}'>{$vardef.len}
{/if}
</td>
</tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View 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".
********************************************************************************/
*}
{include file="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<tr><td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td><td><input type='checkbox' name='default' value=1 {if !empty($vardef.default) }checked{/if} {if $hideLevel > 5}disabled{/if} />{if $hideLevel > 5}<input type='hidden' name='default' value='{$vardef.default}'>{/if}</td></tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View File

@@ -0,0 +1,67 @@
{*
/*********************************************************************************
* 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 $vardef.type != 'bool'}
<tr ><td class='mbLBL'>{$MOD.COLUMN_TITLE_REQUIRED_OPTION}:</td><td><input type="checkbox" name="required" value="1" {if !empty($vardef.required)}CHECKED{/if} {if $hideLevel > 5}disabled{/if}/>{if $hideLevel > 5}<input type="hidden" name="required" value="{$vardef.required}">{/if}</td></tr>
{/if}
<tr><td class='mbLBL'>{$MOD.COLUMN_TITLE_AUDIT}:</td><td><input type="checkbox" name="audited" value="1" {if !empty($vardef.audited) }CHECKED{/if} {if $hideLevel > 5}disabled{/if}/>{if $hideLevel > 5}<input type="hidden" name="audited" value="{$vardef.audited}">{/if}</td></tr>
{if !$hideImportable}
<tr><td class='mbLBL'>{$MOD.COLUMN_TITLE_IMPORTABLE}:</td><td>
{if $hideLevel < 5}
{html_options name="importable" id="importable" selected=$vardef.importable options=$importable_options}
{sugar_help text=$mod_strings.LBL_POPHELP_IMPORTABLE FIXX=260 FIXY=300}
{else}
{if isset($vardef.importable)}{$importable_options[$vardef.importable]}
{else}{$importable_options.true}{/if}
{/if}
</td></tr>
{/if}
{if !$hideDuplicatable}
<tr><td class='mbLBL'>{$MOD.COLUMN_TITLE_DUPLICATE_MERGE}:</td><td>
{if $hideLevel < 5}
{html_options name="duplicate_merge" id="duplicate_merge" selected=$vardef.duplicate_merge_dom_value options=$duplicate_merge_options}
{sugar_help text=$mod_strings.LBL_POPHELP_DUPLICATE_MERGE FIXX=260 FIXY=0}
{else}
{if isset($vardef.duplicate_merge_dom_value)}{$vardef.duplicate_merge_dom_value}
{else}{$duplicate_merge_options[0]}{/if}
{/if}
</td></tr>
{/if}
</table>

View 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".
********************************************************************************/
*}
<table width="100%">
<tr>
<td class='mbLBL' width='30%' >{$MOD.COLUMN_TITLE_NAME}:</td>
<td>
{if $hideLevel == 0}
<input id="field_name_id" maxlength={if isset($package->name) && $package->name != "studio"}30{else}28{/if} type="text" name="name" value="{$vardef.name}"
onchange="
document.getElementById('label_key_id').value = 'LBL_'+document.getElementById('field_name_id').value.toUpperCase();
document.getElementById('label_value_id').value = document.getElementById('field_name_id').value.replace(/_/,' ');
document.getElementById('field_name_id').value = document.getElementById('field_name_id').value.toLowerCase();" />
{else}
<input id= "field_name_id" type="hidden" name="name" value="{$vardef.name}"
onchange="
document.getElementById('label_key_id').value = 'LBL_'+document.getElementById('field_name_id').value.toUpperCase();
document.getElementById('label_value_id').value = document.getElementById('field_name_id').value.replace(/_/,' ');
document.getElementById('field_name_id').value = document.getElementById('field_name_id').value.toLowerCase();"/>
{$vardef.name}
{/if}
<script>
addToValidate('popup_form', 'name', 'DBName', true,'{$MOD.COLUMN_TITLE_NAME} [a-zA-Z_]' );
addToValidateIsInArray('popup_form', 'name', 'in_array', true,'{$MOD.ERR_RESERVED_FIELD_NAME}', '{$field_name_exceptions}', 'u==');
</script>
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_DISPLAY_LABEL}:</td>
<td>
<input id="label_value_id" type="text" name="labelValue" value="{$lbl_value}">
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_LABEL}:</td>
<td>
{if $hideLevel < 1}
<input id ="label_key_id" type="text" name="label" value="{$vardef.vname}">
{else}
<input type="text" readonly value="{$vardef.vname}" disabled=1>
<input id ="label_key_id" type="hidden" name="label" value="{$vardef.vname}">
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_HELP_TEXT}:</td><td>{if $hideLevel < 5 }<input type="text" name="help" value="{$vardef.help}">{else}<input type="hidden" name="help" value="{$vardef.help}">{$vardef.help}{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_COMMENT_TEXT}:</td><td>{if $hideLevel < 5 }<input type="text" name="comments" value="{$vardef.comments}">{else}<input type="hidden" name="comment" value="{$vardef.comment}">{$vardef.comment}{/if}
</td>
</tr>

View File

@@ -0,0 +1,52 @@
{*
/*********************************************************************************
* 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="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<tr><td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td><td>
{if $hideLevel < 5}
<input type='text' name='default' value='{sugar_currency_format var=$vardef.default}'>
<script>
addToValidate('popup_form', 'default', 'float', false,'{$MOD.COLUMN_TITLE_DEFAULT_VALUE}' );
</script>
{else}
<input type='hidden' name='default' value='{sugar_currency_format var=$vardef.default}'>{sugar_currency_format var=$vardef.default}
{/if}
</td></tr>{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View 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".
********************************************************************************/
*}
{include file="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td>
<td>
{if $hideLevel < 5}
{html_options name='default' options=$default_values selected=$vardef.display_default}
{else}
<input type='hidden' name='default' value='$vardef.display_default'>{$vardef.display_default}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_MASS_UPDATE}:</td>
<td>
{if $hideLevel < 5}
<input type="checkbox" name="massupdate" value="1" {if !empty($vardef.massupdate)}checked{/if}/>
{else}
<input type="checkbox" name="massupdate" value="1" disabled {if !empty($vardef.massupdate)}checked{/if}/>
{/if}
</td>
</tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View File

@@ -0,0 +1,107 @@
{*
/*********************************************************************************
* 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="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
{literal}
<script language="Javascript">
function timeValueUpdate(){
var fieldname = 'defaultTime';
var timeseparator = ':';
var newtime = '';
id = fieldname + '_hours';
h = window.document.getElementById(id).value;
id = fieldname + '_minutes';
m = window.document.getElementById(id).value;
id = fieldname + '_meridiem';
ampm = '';
if(document.getElementById(id)) {
ampm = document.getElementById(id).value;
}
newtime = h + timeseparator + m + ampm;
document.getElementById(fieldname).value = newtime;
}
</script>
{/literal}
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td>
<td>
{if $hideLevel < 5}
{html_options name='defaultDate' id='defaultDate_date' options=$default_values selected=$default_date}
{else}
<input type='hidden' name='defaultDate' value='{$default_date}'>{$default_date}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'></td>
<td>
{if $hideLevel < 5}
<div>
{html_options name='defaultHours' size='1' id='defaultTime_hours' options=$default_hours_values onchange="timeValueUpdate();" selected=$default_hours}
:
{html_options name='defaultMinutes' size='1' id='defaultTime_minutes' options=$default_minutes_values onchange="timeValueUpdate();" selected=$default_minutes}
{if $show_meridiem === true}
{html_options name='defaultMeridiem' size='1' id='defaultTime_meridiem' options=$default_meridiem_values onchange="timeValueUpdate();" selected=$default_meridiem}
{/if}
</div>
<input type='hidden' name='defaultTime' id='defaultTime' value="{$defaultTime}">
{else}
<input type='hidden' name='defaultTime' value='{$defaultTime}'>{$defaultTime}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_MASS_UPDATE}:</td>
<td>
{if $hideLevel < 5}
<input type="checkbox" name="massupdate" value="1" {if !empty($vardef.massupdate)}checked{/if}/>
{else}
<input type="checkbox" name="massupdate" value="1" disabled {if !empty($vardef.massupdate)}checked{/if}/>
{/if}
</td>
</tr>
<script>
addToValidateBinaryDependency('popup_form',"defaultDate_date", 'alpha', false, "{$APP.ERR_MISSING_REQUIRED_FIELDS} {$APP.LBL_DATE} {$APP.LBL_OR} {$APP.LBL_HOURS}" ,"defaultTime_hours");
addToValidateBinaryDependency('popup_form',"defaultTime_hours", 'alpha', false, "{$APP.ERR_MISSING_REQUIRED_FIELDS} {$APP.LBL_HOURS} {$APP.LBL_OR} {$APP.LBL_MINUTES}" ,"defaultTime_minutes");
addToValidateBinaryDependency('popup_form', "defaultTime_minutes", 'alpha', false, "{$APP.ERR_MISSING_REQUIRED_FIELDS} {$APP.LBL_MINUTES} {$APP.LBL_OR} {$APP.LBL_MERIDIEM}","defaultTime_meridiem");
</script>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View 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".
********************************************************************************/
*}
{include file="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td><td>
{if $hideLevel < 5}
<input type='text' name='default' value='{$vardef.default}'>
{else}
<input type='hidden' name='default' value='{$vardef.default}'>{$vardef.default}
{/if}
</td>
</tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View File

@@ -0,0 +1,77 @@
{*
/*********************************************************************************
* 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="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<script language="Javascript">
app_list_strings = {$app_list_strings};
</script>
<tr>
<td class='mbLBL'>{$MOD.LBL_DROP_DOWN_LIST}:</td>
<td>
{if $hideLevel < 5}
{html_options name="options" id="options" selected=$selected_dropdown values=$dropdowns output=$dropdowns onChange="ModuleBuilder.dropdownChanged(this.value);"}<br><input type='button' value='{$MOD.LBL_BTN_EDIT}' class='button' onclick="ModuleBuilder.moduleDropDown(this.form.options.value, this.form.options.value);">&nbsp;<input type='button' value='{$MOD.LBL_BTN_ADD}' class='button' onclick="ModuleBuilder.moduleDropDown('', this.form.name.value);">
{else}
<input type='hidden' name='options' value='{$selected_dropdown}'>{$selected_dropdown}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td>
<td>
{if $hideLevel < 5}
{html_options name="default[]" id="default[]" selected=$selected_options options=$default_dropdowns multiple=$multi}
{else}
<input type='hidden' name='default[]' value='$vardef.default'>{$vardef.default}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_MASS_UPDATE}:</td>
<td>
{if $hideLevel < 5}
<input type="checkbox" name="massupdate" value="1" {if !empty($vardef.massupdate)}checked{/if}/>
{else}
<input type="checkbox" name="massupdate" value="1" disabled {if !empty($vardef.massupdate)}checked{/if}/>
{/if}
</td>
</tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View File

@@ -0,0 +1,81 @@
{*
/*********************************************************************************
* 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="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td>
<td>
{if $hideLevel < 5}
<input type='text' id='default' name='default' value='{$vardef.default}'>
<script>
addToValidate('popup_form', 'default', 'float', false,'{$MOD.COLUMN_TITLE_DEFAULT_VALUE}' );
formWithPrecision = new addToValidatePrecision('popup_form_id', 'default', 'precision');
</script>
{else}
<input type='hidden' name='default' value='{$vardef.default}'>{$vardef.default}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_MAX_SIZE}:</td>
<td>
{if $hideLevel < 5}
<input type='text' name='len' value='{$vardef.len|default:18}'></td>
<script>addToValidate('popup_form', 'len', 'int', false,'{$MOD.COLUMN_TITLE_MAX_SIZE}' );</script>
{else}
<input type='hidden' name='len' value='{$vardef.len}'>{$vardef.len}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_PRECISION}:</td>
<td>
{if $hideLevel < 5}
<input type='text' id='precision' name='precision' value='{$vardef.precision|default:0}'>
<script>addToValidate('popup_form', 'ext1', 'int', false,'{$MOD.COLUMN_TITLE_PRECISION}' );</script>
{else}
<input type='hidden' name='precision' value='{$vardef.precision}'>{$vardef.precision}
{/if}
</td>
</tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View File

@@ -0,0 +1,74 @@
{*
/*********************************************************************************
* 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="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<tr>
<td class="mbLBL">{$MOD.COLUMN_TITLE_HTML_CONTENT}:</td>
<td>
{if $hideLevel < 5}
<textarea name='htmlarea' id='htmlarea' cols=50 rows=10>{$HTML_EDITOR}</textarea>
<input type='hidden' name='ext4' id='ext4' value='{$cf.ext4}'/>
{else}
<textarea name='htmlarea' id='htmlarea' cols=50 rows=10 disabled>{$HTML_EDITOR}</textarea>
<input type='hidden' name='htmlarea' value='{$HTML_EDITOR}'/>
{/if}
<br>
</td>
</tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}
<script type="text/javascript" language="Javascript">
SUGAR.ajaxLoad = true;
{if $hideLevel < 5}
setTimeout("tinyMCE.execCommand('mceAddControl', false, 'htmlarea');", 500);
ModuleBuilder.tabPanel.get("activeTab").closeEvent.subscribe(function(){ldelim}tinyMCE.execCommand('mceRemoveControl', false, 'htmlarea');{rdelim});
setTimeout("document.forms.popup_form.required.value = false;YAHOO.util.Dom.getAncestorByTagName(document.forms.popup_form.required, 'tr').style.display='none';", 500);
{/if}
{literal}
document.popup_form.presave = function(){
var inst = tinyMCE.get("htmlarea").getContent();
document.getElementById('ext4').value =inst;
document.getElementById('ext4').style.display = '';
};
</script>
{/literal}

View File

@@ -0,0 +1,115 @@
{*
/*********************************************************************************
* 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="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<input type=hidden id='ext3' name='ext3' value='{$vardef.gen}'>
<tr>
<td class='mbLBL'>{$MOD.LBL_GENERATE_URL}:</td>
<td>
{if $hideLevel < 5}
<input type='checkbox' id='gencheck' {if $vardef.gen}checked=true{/if} name='genCheck' value="0" onclick="
if(this.checked) {ldelim}
YAHOO.util.Dom.setStyle('fieldListHelper', 'display', '');
YAHOO.util.Dom.get('ext3').value = 1;
addToValidate('popup_form', 'default', 'alphanumeric', true,'{$MOD.COLUMN_TITLE_DEFAULT_VALUE}' );
{rdelim} else {ldelim}
YAHOO.util.Dom.setStyle('fieldListHelper', 'display', 'none');
YAHOO.util.Dom.get('ext3').value = 0;
removeFromValidate('popup_form', 'default');
{rdelim}">
{else}
<input type='checkbox' name='ext3' {if $vardef.gen}checked=true{/if} disabled>
{/if}
</td>
</tr>
<tr id='fieldListHelper' {if !$vardef.gen}style="display:none"{/if}>
<td></td>
<td>{html_options name="flo" id="fieldListOptions" options=$fieldOpts}
<input type='button' class='button' value="Insert Field" onclick="
YAHOO.util.Dom.get('default').value += '{ldelim}' + YAHOO.util.Dom.get('fieldListOptions').value + '{rdelim}'
"></td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_DEFAULT_VALUE}:</td>
<td>
{if $hideLevel < 5}
<input type='text' name='default' id='default' value='{$vardef.default}' maxlength='{$vardef.len|default:50}'>
{else}
<input type='hidden' id='default' name='default' value='{$vardef.default}'>{$vardef.default}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_MAX_SIZE}:</td>
<td>
{if $hideLevel < 5}
<input type='text' name='len' value='{$vardef.len|default:25}' onchange="forceRange(this,1,255);changeMaxLength(document.getElementById('default'),this.value);">
{literal}
<script>
function forceRange(field, min, max){
field.value = parseInt(field.value);
if(field.value == 'NaN')field.value = max;
if(field.value > max) field.value = max;
if(field.value < min) field.value = min;
}
function changeMaxLength(field, length){
field.maxLength = parseInt(length);
field.value = field.value.substr(0, field.maxLength);
}
</script>
{/literal}
{else}
<input type='hidden' name='len' value='{$vardef.len}'>{$vardef.len}
{/if}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.COLUMN_TITLE_FRAME_HEIGHT}:</td>
<td>
{if $hideLevel < 5}
<input type='text' name='ext4' value='{$vardef.height|default:200}' onchange="forceRange(this,100,1024);">
{else}
<input type='hidden' name='ext4' value='{$vardef.height}'>{$vardef.height}
{/if}
</td>
</tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

View File

@@ -0,0 +1,77 @@
{*
/*********************************************************************************
* 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="modules/DynamicFields/templates/Fields/Forms/coreTop.tpl"}
<tr>
<td class='mbLBL'>{$MOD.LBL_IMAGE_WIDTH}:</td>
<td>
<input id ="width" type="text" name="width"
{if !$vardef.width && !$vardef.height}
value="120"
{else}
value="{$vardef.width}"
{/if}
>
{sugar_help text=$mod_strings.LBL_POPHELP_IMAGE_WIDTH FIXX=300 FIXY=200}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.LBL_IMAGE_HEIGHT}:</td>
<td>
<input id ="height" type="text" name="height"
{if !$vardef.width && !$vardef.height}
value=""
{else}
value="{$vardef.height}"
{/if}
>
{sugar_help text=$mod_strings.LBL_POPHELP_IMAGE_HEIGHT FIXX=300 FIXY=220}
</td>
</tr>
<tr>
<td class='mbLBL'>{$MOD.LBL_IMAGE_BORDER}:</td>
<td>
<input type="checkbox" id ="border" name="border" value="1" {if !empty($vardef.border)}checked{/if}/>
</td>
</tr>
{include file="modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl"}

Some files were not shown because too many files have changed in this diff Show More