[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Import/ -> ImportButton.php (source)

   1  <?php
   2  /*********************************************************************************
   3   * The contents of this file are subject to the SugarCRM Public License Version 1.1.2
   4   * ("License"); You may not use this file except in compliance with the
   5   * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
   6   * Software distributed under the License is distributed on an  "AS IS"  basis,
   7   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
   8   * the specific language governing rights and limitations under the License.
   9   * The Original Code is:  SugarCRM Open Source
  10   * The Initial Developer of the Original Code is SugarCRM, Inc.
  11   * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
  12   * All Rights Reserved.
  13   * Contributor(s): ______________________________________.
  14   ********************************************************************************/
  15  
  16  global $mod_strings;
  17  global $allow_exports;
  18  ?>
  19  <!--
  20  <table width="100%" cellpadding="6">
  21  <tr>
  22  -->
  23  <?php
  24  require_once ('include/utils/UserInfoUtil.php'); 
  25  if ($_REQUEST['module'] == 'Products' ||
  26      $_REQUEST['module'] == 'Contacts' ||
  27      $_REQUEST['module'] == 'Potentials' ||
  28      $_REQUEST['module'] == 'Accounts' ||
  29      $_REQUEST['module'] == 'Leads')
  30  {
  31      if(isPermitted($_REQUEST['module'],'Import') == 0)
  32      {
  33  ?>
  34  <!--
  35  <form name="Import" method="get" action="index.php">
  36  <input type="hidden" name="module" value="<?php echo $_REQUEST['module']; ?>">
  37  <input type="hidden" name="action" value="Import">
  38  <input type="hidden" name="step" value="1">
  39  <input type="hidden" name="return_module" value="<?php echo $_REQUEST['module']; ?>">
  40  <input type="hidden" name="return_action" value="index">
  41  <td valign="middle" align="right" width="99%"><input title="<?php echo $app_strings['LBL_IMPORT']; ?> <?php echo $mod_strings['LBL_MODULE_NAME']?>" accessKey="" class="button" type="submit" name="button" value="  <?php echo $app_strings['LBL_IMPORT']; ?> <?php echo $mod_strings['LBL_MODULE_NAME']?>  " ></td>
  42  </form>
  43  -->
  44  <li>
  45      <a href="index.php?module=<?php echo $_REQUEST['module']; ?>&action=Import&step=1&return_module=<?php echo $_REQUEST['module']; ?>&return_action=index"><?php echo $app_strings['LBL_IMPORT']; ?> <?php echo $mod_strings['LBL_MODULE_NAME']?></a>
  46  </li>
  47  <?php
  48      }
  49  }
  50  
  51  if  ( $allow_exports=='all' || 
  52      (  $allow_exports=='admin' &&  is_admin($current_user))  ) 
  53      {
  54          if($_REQUEST['module'] != 'Calendar')
  55          {
  56              if(isPermitted($_REQUEST['module'],'Export') == 'yes')
  57              {
  58  ?>
  59  <!--
  60  <form name="EXPORT" method="get" action="include\export.php">
  61  <input type="hidden" name="module" value="<?php echo $_REQUEST['module']; ?>">
  62  <input type="hidden" name="all" value="1">
  63  <input type="hidden" name="action" value="Export">
  64  <td valign="middle" align="right" width="1%"><input title="<?php echo $app_strings['LBL_EXPORT_ALL']?> <?php echo $mod_strings['LBL_MODULE_NAME']?>" accessKey="" class="button" type="submit" name="button" value="  <?php echo $app_strings['LBL_EXPORT_ALL']?> <?php echo $mod_strings['LBL_MODULE_NAME']?>  " ></td>
  65  </form>
  66  -->
  67  <li>
  68      <a href="index.php?module=<?php echo $_REQUEST['module']; ?>&action=Export&all=1"><?php echo $app_strings['LBL_EXPORT_ALL']?> <?php echo $mod_strings['LBL_MODULE_NAME']?></a>
  69  </li>
  70  <?php
  71              }
  72          }
  73      }
  74  ?>
  75  <!--
  76  </tr>
  77  </table>
  78  -->


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7