[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/include/ -> quickcreate.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  
  12  require_once ("Smarty_setup.php");
  13  require_once ("include/utils/CommonUtils.php");
  14  require_once ("include/FormValidationUtil.php");
  15  
  16  global $mod_strings,$current_user;
  17  global $app_strings, $currentModule;
  18  global $adb;
  19  global $app_list_strings;
  20  global $theme;
  21  
  22  $theme_path="themes/".$theme."/";
  23  $image_path=$theme_path."images/";
  24  require_once ($theme_path.'layout_utils.php');
  25  
  26  
  27  $smarty = new vtigerCRM_Smarty;
  28  
  29  $qcreate_array = QuickCreate("$module");
  30  $validationData = $qcreate_array['data'];
  31  $data = split_validationdataArray($validationData);
  32  $smarty->assign("QUICKCREATE", $qcreate_array['form']);
  33  $smarty->assign("THEME",$theme);
  34  $smarty->assign("APP",$app_strings);
  35  $smarty->assign("MOD",$mod_strings);
  36  $smarty->assign("THEME",$theme);
  37  $smarty->assign("IMAGE_PATH",$image_path);
  38  $smarty->assign("ACTIVITY_MODE", $_REQUEST['activity_mode']);
  39  if($module == 'Calendar')
  40      $smarty->assign("QCMODULE", $app_strings['Task']);
  41  elseif($module == "HelpDesk")
  42      $smarty->assign("QCMODULE", $app_strings['Ticket']);
  43  else
  44      $smarty->assign("QCMODULE",rtrim($module,'s'));
  45  $smarty->assign("USERID",$current_user->id);
  46  $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
  47  $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
  48  $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
  49  $smarty->assign("MODULE", $currentModule);
  50  $smarty->assign("CATEGORY",$category);
  51  
  52  $smarty->display("QuickCreate.tpl");
  53  
  54  ?>


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