Skip to content
Snippets Groups Projects
Select Git revision
  • e1efd881551aef590d18dcef7e68310669e6996d
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

FormAdminTest.php

Blame
  • lib_head.js 22.08 KiB
    // Copyright (C) 2005-2006 Laurent Destailleur  <eldy@users.sourceforge.net>
    // Copyright (C) 2005-2007 Regis Houssin        <regis@dolibarr.fr>
    //
    // Script javascript mis en en-tete de pages (dans section head)
    //
    // \file       htdocs/lib/lib_head.js
    // \brief      Fichier qui inclue les fonctions javascript d'en-tete (inclue si option use_javascript active)
    // \version    $Revision$
    
    
    function dolibarr_type_reload(param)
    {
        document.formsoc.action.value='create';
        document.formsoc.private.value=param;
        document.formsoc.cleartype.value=1;
        document.formsoc.submit();
    }
    
    function barcode_coder_save(formNameID)
    {
        var formName = document.getElementById(formNameID);
        formName.action.value='setcoder';
        formName.submit();
    }
    
    /*=================================================================
    	Purpose:  Pour la fonction de saisie auto des villes
    	Input:    postalcode,objectville
    	Author:   Eric Seigne
    	Licence:  GPL
    ==================================================================*/
    
    function autofilltownfromzip_PopupPostalCode(postalcode,objectville)
    {
        var url = 'searchpostalcode.php?cp=' + postalcode + '&targetobject=window.opener.document.formsoc.' + objectville.name;
        //  alert(url);
        var hWnd = window.open(url, "SearchPostalCodeWindow", "width=" + 300 + ",height=" + 150 + ",resizable=yes,scrollbars=yes");
        if((document.window != null) && (!hWnd.opener)) hWnd.opener = document.window;
    }
    
    function autofilltownfromzip_save_refresh_edit()
    {
        document.formsoc.action.value="edit";
        document.formsoc.submit();
    }
    
    function autofilltownfromzip_save_refresh_create()
    {
        document.formsoc.action.value="create";
        document.formsoc.submit();
    }
    
    function company_save_refresh()
    {
        document.form_index.action.value="updateedit";
        document.form_index.submit();
    }
    
    
    
    /*=================================================================
    	Purpose:  Pour la saisie des dates par calendrier
    	Input:    base			   "/theme/eldy"
    					  dateFieldID  "dateo"			  Nom du champ
    				    format			 "dd/MM/yyyy"   Format issu de Dolibarr de SimpleDateFormat  utiliser pour retour
    ==================================================================*/
    
    function showDP(base,dateFieldID,format)
    {
    	showDP.datefieldID=dateFieldID;