[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/PriceBooks/ -> DetailView.php (source)

   1  <?php
   2  /*********************************************************************************
   3  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   4   * ("License"); You may not use this file except in compliance with the License
   5   * The Original Code is:  vtiger CRM Open Source
   6   * The Initial Developer of the Original Code is vtiger.
   7   * Portions created by vtiger are Copyright (C) vtiger.
   8   * All Rights Reserved.
   9  *
  10   ********************************************************************************/
  11  require_once ('include/database/PearDatabase.php');
  12  require_once ('Smarty_setup.php');
  13  require_once ('modules/PriceBooks/PriceBooks.php');
  14  require_once ('include/utils/utils.php');
  15  require_once ('user_privileges/default_module_view.php');
  16  
  17  $focus = new PriceBooks();
  18  
  19  if(isset($_REQUEST['record']) && isset($_REQUEST['record'])) 
  20  {
  21      $focus->retrieve_entity_info($_REQUEST['record'],"PriceBooks");
  22      $focus->id = $_REQUEST['record'];
  23      $focus->name = $focus->column_fields['bookname'];
  24  }
  25  
  26  if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') 
  27  {
  28          $focus->id = "";
  29  }
  30  
  31  global $app_strings,$mod_strings,$theme,$currentModule,$singlepane_view;
  32  
  33  $theme_path="themes/".$theme."/";
  34  $image_path=$theme_path."images/";
  35  require_once ($theme_path.'layout_utils.php');
  36  
  37  $smarty = new vtigerCRM_Smarty;
  38  $smarty->assign("MOD", $mod_strings);
  39  $smarty->assign("APP", $app_strings);
  40  
  41  $smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
  42  
  43  $smarty->assign("UPDATEINFO",updateInfo($focus->id));
  44  $category = getParentTab();
  45  $smarty->assign("CATEGORY",$category);
  46  
  47  $smarty->assign("CUSTOMFIELD", $cust_fld);
  48  
  49  if(isPermitted("PriceBooks","PriceBookEditView",$_REQUEST['record']) == 'yes')
  50      $smarty->assign("EDIT_DUPLICATE","permitted");
  51  
  52  if(isPermitted("PriceBooks","DeletePriceBook",$_REQUEST['record']) == 'yes')
  53      $smarty->assign("DELETE","permitted");
  54  
  55  $smarty->assign("IMAGE_PATH", $image_path);
  56  $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
  57  $smarty->assign("ID", $_REQUEST['record']);
  58  $smarty->assign("NAME", $focus->name);
  59  
  60  
  61  $check_button = Button_Check($module);
  62  $smarty->assign("CHECK", $check_button);
  63  
  64  $tabid = getTabid("PriceBooks");
  65  $validationData = getDBValidationData($focus->tab_name,$tabid);
  66  $data = split_validationdataArray($validationData);
  67  $category = getParentTab();
  68  $smarty->assign("CATEGORY",$category);
  69  
  70  $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
  71  $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
  72  $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
  73  
  74  $smarty->assign("MODULE", $currentModule);
  75  $smarty->assign("SINGLE_MOD", 'PriceBook');
  76  $smarty->assign("EDIT_PERMISSION",isPermitted($currentModule,'EditView',$_REQUEST[record]));
  77  
  78  if($singlepane_view == 'true')
  79  {
  80      $related_array = getRelatedLists($currentModule,$focus);
  81      $smarty->assign("RELATEDLISTS", $related_array);
  82  }
  83  
  84  $smarty->assign("SinglePane_View", $singlepane_view);
  85  
  86  $smarty->display("Inventory/InventoryDetailView.tpl");
  87  ?>


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