[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/Smarty/templates/ -> RelatedListNew.tpl (source)

   1  {*<!--
   2  
   3  /*********************************************************************************
   4  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   5   * ("License"); You may not use this file except in compliance with the License
   6   * The Original Code is:  vtiger CRM Open Source
   7   * The Initial Developer of the Original Code is vtiger.
   8   * Portions created by vtiger are Copyright (C) vtiger.
   9   * All Rights Reserved.
  10  *
  11   ********************************************************************************/
  12  
  13  -->*}
  14  <script language="JavaScript" type="text/javascript" src="modules/PriceBooks/PriceBook.js"></script>
  15  <script type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script>
  16  {literal}
  17  <script>
  18  function editProductListPrice(id,pbid,price)
  19  {
  20          $("status").style.display="inline";
  21          new Ajax.Request(
  22                  'index.php',
  23                  {queue: {position: 'end', scope: 'command'},
  24                          method: 'post',
  25                          postBody: 'action=ProductsAjax&file=EditListPrice&return_action=DetailView&return_module=PriceBooks&module=Products&parenttab=Settings&record='+id+'&pricebook_id='+pbid+'&listprice='+price,
  26                          onComplete: function(response) {
  27                                          $("status").style.display="none";
  28                                          $("editlistprice").innerHTML= response.responseText;
  29                          }
  30                  }
  31          );
  32  }
  33  
  34  function gotoUpdateListPrice(id,pbid,proid)
  35  {
  36          $("status").style.display="inline";
  37          $("roleLay").style.display = "none";
  38          var listprice=$("list_price").value;
  39                  new Ajax.Request(
  40                          'index.php',
  41                          {queue: {position: 'end', scope: 'command'},
  42                                  method: 'post',
  43                                  postBody: 'module=Products&action=ProductsAjax&file=UpdateListPrice&ajax=true&return_action=DetailView&return_module=PriceBooks&record='+id+'&pricebook_id='+pbid+'&product_id='+proid+'&list_price='+listprice,
  44                                  onComplete: function(response) {
  45                                          $("status").style.display="none";
  46                                          $("RLContents").innerHTML= response.responseText;
  47                                  }
  48                          }
  49                  );
  50  }
  51  {/literal}
  52  
  53  function loadCvList(type,id) {ldelim}
  54      if(type === 'Leads')
  55      {ldelim}
  56          if($("lead_cv_list").value != 'None')
  57          {ldelim}
  58              $("lead_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("lead_cv_list").value+'\'">';
  59          {rdelim}
  60      {rdelim}
  61  
  62      if(type === 'Contacts')
  63      {ldelim}
  64          if($("cont_cv_list").value != 'None')
  65          {ldelim}
  66          $("contact_list_button").innerHTML = '<input title="{$MOD.LBL_LOAD_LIST}" accessKey="" class="crmbutton small edit" value="{$MOD.LBL_LOAD_LIST}" type="button"  name="button" onclick="window.location.href=\'index.php?action=LoadList&module=Campaigns&return_action=DetailView&return_id='+id+'&list_type='+type+'&cvid='+$("cont_cv_list").value+'\'">';
  67          {rdelim}
  68      {rdelim}
  69  {rdelim}
  70  </script>
  71  
  72  <!-- Contents -->
  73  <div id="editlistprice" style="position:absolute;width:300px;"></div>
  74          <!-- PUBLIC CONTENTS STARTS-->
  75          
  76              <!-- Account details tabs -->
  77              <tr>
  78                  <td valign=top align=left >
  79                      <div class="small" style="padding:5px">
  80                              <table border=0 cellspacing=0 cellpadding=3 width=100% >
  81                          <tr>
  82                              <td valign=top align=left>
  83                              <!-- content cache -->
  84                                  <table border=0 cellspacing=0 cellpadding=0 width=100%>
  85                                      <tr>
  86                                          <td >
  87                                             <!-- General details -->
  88                                                  {include file='RelatedListsHidden.tpl'}
  89                                                  <div id="RLContents">
  90                                                                              {include file='RelatedListContents.tpl'}
  91                                                                          </div>
  92                                                  </form>
  93                                            {*-- End of Blocks--*} 
  94                                          </td>
  95                                      </tr>
  96                                  </table>
  97                              </td>
  98                          </tr>
  99                      </table>
 100                      </div>
 101                  </td>
 102              </tr>
 103      <!-- PUBLIC CONTENTS STOPS-->
 104  
 105  <script>
 106  function OpenWindow(url)
 107  {ldelim}
 108      openPopUp('xAttachFile',this,url,'attachfileWin',380,375,'menubar=no,toolbar=no,location=no,status=no,resizable=no');    
 109  {rdelim}
 110  </script>
 111  


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