[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Products/ -> EditListPrice.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  global $mod_strings;
  13  global $app_strings;
  14  global $theme;
  15  $theme_path="themes/".$theme."/";
  16  $image_path=$theme_path."images/";
  17  require_once ($theme_path.'layout_utils.php');
  18  
  19  if(isset($_REQUEST['return_module']) && $_REQUEST['return_module']=="PriceBooks")
  20  {
  21      $pricebook_id = $_REQUEST['pricebook_id'];
  22      $product_id = $_REQUEST['record'];
  23      $listprice = $_REQUEST['listprice'];
  24      $return_action = "CallRelatedList";
  25      $return_id = $_REQUEST['pricebook_id'];
  26  }
  27  else
  28  {
  29      $product_id = $_REQUEST['record'];
  30      $pricebook_id = $_REQUEST['pricebook_id'];
  31      $listprice = getListPrice($product_id,$pricebook_id);
  32      $return_action = "CallRelatedList";
  33      $return_id = $_REQUEST['pricebook_id'];
  34  }
  35  $output='';
  36  $output ='<div id="roleLay" style="display:block;" class="layerPopup">
  37      <form action="index.php" name="index">
  38      <input type="hidden" name="module" value="Products">
  39      <input type="hidden" name="action" value="UpdateListPrice">
  40      <input type="hidden" name="record" value="'.$return_id.'">
  41      <input type="hidden" name="pricebook_id" value="'.$pricebook_id.'">
  42      <input type="hidden" name="product_id" value="'.$product_id.'">
  43      <table border=0 cellspacing=0 cellpadding=5 width=100% class=layerHeadingULine>
  44      <tr>
  45          <td class=layerPopupHeading " align="left">'.$mod_strings["LBL_EDITLISTPRICE"].'</td>
  46          <td align="right" class="small"><img src="'.$image_path.'close.gif" border=0 alt="'.$app_strings["LBL_CLOSE"].'" title="'.$app_strings["LBL_CLOSE"].'" style="cursor:pointer" onClick="document.getElementById(\'editlistprice\').style.display=\'none\';"></td>
  47      </tr>
  48      </table>
  49      <table border=0 cellspacing=0 cellpadding=5 width=95% align=center> 
  50  <tr>
  51      <td class="small">
  52      <table border=0 celspacing=0 cellpadding=5 width=100% align=center bgcolor=white>
  53      <tr>
  54          <td width="50%" class="cellLabel small"><b>'.$mod_strings["LBL_EDITLISTPRICE"].'</b></td>
  55          <td width="50%" class="cellText small"><input class="dataInput" type="text" id="list_price" name="list_price" value="'.$listprice.'" /></td>
  56      </tr>
  57      </table>
  58      </td>
  59  </tr>
  60  </table>
  61  <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport">
  62  <tr>
  63      <td colspan="3" align="center" class="small">
  64      <input type="button" onclick="gotoUpdateListPrice('.$return_id.','.$pricebook_id.','.$product_id.');return verify_data(EditView)" name="button" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="crmbutton small save">
  65      <input title="'.$app_strings["LBL_CANCEL_BUTTON_LABEL"].'" accessKey="'.$app_strings["LBL_CANCEL_BUTTON_KEY"].'" class="crmbutton small cancel" onClick="document.getElementById(\'editlistprice\').style.display=\'none\';" type="button" name="button" value="'.$app_strings["LBL_CANCEL_BUTTON_LABEL"].'">
  66      </td>
  67  </tr>
  68  </table>
  69  </form>
  70  </div>';
  71  
  72  echo $output;
  73  
  74  ?>


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