[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/themes/alphagrey/ -> header.php (source)

   1  <?php
   2  
   3  /*********************************************************************************
   4  
   5   * The contents of this file are subject to the SugarCRM Public License Version 1.1.2
   6  
   7   * ("License"); You may not use this file except in compliance with the
   8  
   9   * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
  10  
  11   * Software distributed under the License is distributed on an  "AS IS"  basis,
  12  
  13   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
  14  
  15   * the specific language governing rights and limitations under the License.
  16  
  17   * The Original Code is:  SugarCRM Open Source
  18  
  19   * The Initial Developer of the Original Code is SugarCRM, Inc.
  20  
  21   * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
  22  
  23   * All Rights Reserved.
  24  
  25   * Contributor(s): ______________________________________.
  26  
  27   ********************************************************************************/
  28  
  29  /*********************************************************************************
  30  
  31   * $Header$
  32  
  33   * Description:  Contains a variety of utility functions used to display UI
  34  
  35   * components such as form headers and footers.  Intended to be modified on a per
  36  
  37   * theme basis.
  38  
  39   ********************************************************************************/
  40  
  41  require_once ('Smarty_setup.php');
  42  
  43  require_once ("data/Tracker.php");
  44  
  45  require_once ("include/utils/utils.php");
  46  
  47  require_once ("include/calculator/Calc.php");
  48  
  49  
  50  
  51  global $currentModule;
  52  global $app_strings;
  53  global $app_list_strings;
  54  global $moduleList;
  55  global $theme;
  56  $theme_path="themes/".$theme."/";
  57  $image_path=$theme_path."images/";
  58  require_once ($theme_path.'layout_utils.php');
  59  
  60  $smarty = new vtigerCRM_Smarty;
  61  $header_array = getHeaderArray();
  62  $smarty->assign("HEADERS",$header_array);
  63  $smarty->assign("THEME",$theme);
  64  $smarty->assign("IMAGEPATH",$image_path);
  65  
  66  $qc_modules = getQuickCreateModules();
  67  $smarty->assign("QCMODULE", $qc_modules);
  68  $smarty->assign("APP", $app_strings);
  69  
  70  $cnt = count($qc_modules);
  71  $smarty->assign("CNT", $cnt);
  72  
  73  $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
  74  
  75  $smarty->assign("MODULE_NAME", $currentModule);
  76  
  77  $smarty->assign("DATE", getDisplayDate(date("Y-m-d H:i")));
  78  
  79  $smarty->assign("CURRENT_USER", $current_user->user_name);
  80  
  81  $smarty->assign("CURRENT_USER_ID", $current_user->id);
  82  $smarty->assign("MODULELISTS",$app_list_strings['moduleList']);
  83  $smarty->assign("CATEGORY",getParentTab());
  84  $smarty->assign("CALC",get_calc($image_path));
  85  $smarty->assign("QUICKACCESS",getAllParenttabmoduleslist());
  86  $smarty->assign("ANNOUNCEMENT",get_announcements());
  87  
  88  
  89  if (is_admin($current_user)) $smarty->assign("ADMIN_LINK", "<a href='index.php?module=Settings&action=index'>".$app_strings['LBL_SETTINGS']."</a>");
  90  
  91  
  92  
  93  $module_path="modules/".$currentModule."/";
  94  
  95  require_once ('include/Menu.php');
  96  
  97  //Assign the entered global search string to a variable and display it again
  98  if($_REQUEST['query_string'] != '')
  99      $smarty->assign("QUERY_STRING",$_REQUEST['query_string']);
 100  else
 101      $smarty->assign("QUERY_STRING","$app_strings[LBL_SEARCH_STRING]");
 102  
 103  global $module_menu;
 104  
 105  
 106  require_once ('data/Tracker.php');
 107  $tracFocus=new Tracker();
 108  $list = $tracFocus->get_recently_viewed($current_user->id);
 109  $smarty->assign("TRACINFO",$list);
 110  $smarty->display("Header.tpl");
 111  ?>


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