[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Portal/ -> Portal.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  
  13  /** Function to save the portal in database 
  14   *  @param $portalname : Type String
  15   *  @param $portalurl : Type String
  16   *  This function saves the portal with the given $portalname,$portalurl
  17   *  This Returns $portalid 
  18   */
  19  function SavePortal($portalname,$portalurl)
  20  {
  21      global $adb;
  22      $adb->println("just entered the SavePortal method");
  23      $portalid=$adb->getUniqueID('vtiger_portal');
  24      $query="insert into vtiger_portal values(".$portalid.",'".$portalname."','".$portalurl."',0)";
  25      $adb->println($query);
  26      $result=$adb->query($query);
  27      return $portalid;
  28  }
  29  /** Function to update the portal in database 
  30   *  @param $portalname : Type String
  31   *  @param $portalurl : Type String
  32   *  @param $portalid : Type Integer 
  33   *  This function updates the portal with the given $portalname,$portalurl
  34   *  This Returns $portalid 
  35   */
  36  function UpdatePortal($portalname,$portalurl,$portalid)
  37  {
  38      global $adb;
  39      $adb->println("just entered the SavePortal method");
  40      $query="update vtiger_portal set portalname='$portalname' ,portalurl='$portalurl' where portalid=$portalid";
  41      $adb->println($query);
  42      $result=$adb->query($query);
  43      return $portalid;
  44  }
  45  ?>


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