2556c057cd
yuchenghu@hawebs.net git-svn-id: https://svn.code.sf.net/p/hawebs/svn@611 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
51 lines
1.9 KiB
PHP
51 lines
1.9 KiB
PHP
<?php
|
|
/*********************************************************************************
|
|
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
|
* ("License"); You may not use this file except in compliance with the
|
|
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
|
* the specific language governing rights and limitations under the License.
|
|
* The Original Code is: SugarCRM Open Source
|
|
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
|
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
|
* All Rights Reserved.
|
|
* Contributor(s): ______________________________________.
|
|
********************************************************************************/
|
|
|
|
global $mod_strings;
|
|
global $allow_exports;
|
|
|
|
require_once('include/utils/UserInfoUtil.php');
|
|
if ($_REQUEST['module'] == 'Products' ||
|
|
$_REQUEST['module'] == 'Contacts' ||
|
|
$_REQUEST['module'] == 'Potentials' ||
|
|
$_REQUEST['module'] == 'Accounts' ||
|
|
$_REQUEST['module'] == 'Leads')
|
|
{
|
|
if(isPermitted($_REQUEST['module'],'Import') == 0)
|
|
{
|
|
?>
|
|
<li>
|
|
<a href="index.php?module=<?php echo vtlib_purify($_REQUEST['module']); ?>&action=Import&step=1&return_module=<?php echo vtlib_purify($_REQUEST['module']); ?>&return_action=index"><?php echo $app_strings['LBL_IMPORT']; ?> <?php echo $mod_strings['LBL_MODULE_NAME']?></a>
|
|
</li>
|
|
<?php
|
|
}
|
|
}
|
|
|
|
if ( $allow_exports=='all' ||
|
|
( $allow_exports=='admin' && is_admin($current_user)) )
|
|
{
|
|
if($_REQUEST['module'] != 'Calendar')
|
|
{
|
|
if(isPermitted($_REQUEST['module'],'Export') == 'yes')
|
|
{
|
|
?>
|
|
<li>
|
|
<a href="index.php?module=<?php echo vtlib_purify($_REQUEST['module']); ?>&action=Export&all=1"><?php echo $app_strings['LBL_EXPORT_ALL']?> <?php echo $mod_strings['LBL_MODULE_NAME']?></a>
|
|
</li>
|
|
<?php
|
|
}
|
|
}
|
|
}
|
|
?>
|