noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
ajax_card.php File Reference

this file respond to an ajax request and return an object with the ctl and the html string at minimum More...

Go to the source code of this file.

Variables

 $cn =Dossier::connect()
 
 $cont =0
 
 $extra =""
 
global $g_user =new Noalyss_User($cn)
 
 $html =var_export($_REQUEST,true)
 
 $http =new HttpInput()
 
 $var =array('gDossier','op2','ctl')
 
switch($op2) $xml =escape_xml($html)
 

Detailed Description

this file respond to an ajax request and return an object with the ctl and the html string at minimum

 {'ctl':'','html':''}

The parameters are

  • gDossier
  • op
    • dc Detail of a card parameter : $qcode , optional ro for readonly and nohistory without the history button, nofollowup
    • bc Blank Card : display form for adding a card parameter fd_id (fiche_def:fd_id)
    • st Show Type : select type of card parameter fil : possible values of fd_id if empty it means all the fiche cat.
    • sc Save Card : insert a new card (call first bc)
    • upc update a card specific parameter qcode
    • fs Form to search card parameter like
      • inp : the input text field to update
      • str : current content of the input text field (inp)
      • label : the element to put the name of the card
      • price : the element to put the price of the card (if exists)
      • tvaid : the element to put the tvaid of the card (if exists)
      • jrn : the concerned ledger (or all)
      • typecard : possible values are cred, deb, filter (list of fd_id)
    • ac Add Category
      • cat type of cat to add (FICHE_TYPE_CLIENT,...)
  • ctl (to return)
  • popup
  • ref if we want to refresh the window
  • acc is accounting is visible or not
    See also
    fiche fiche::Save constant.php

Definition in file ajax_card.php.

Variable Documentation

◆ $cn

$cn =Dossier::connect()

Definition at line 82 of file ajax_card.php.

◆ $cont

$cont =0

Definition at line 65 of file ajax_card.php.

◆ $extra

$extra =""

Definition at line 90 of file ajax_card.php.

◆ $g_user

$g_user =new Noalyss_User($cn)

Definition at line 83 of file ajax_card.php.

◆ $html

$html =var_export($_REQUEST,true)

Definition at line 87 of file ajax_card.php.

◆ $http

$http =new HttpInput()

Definition at line 81 of file ajax_card.php.

◆ $var

$var =array('gDossier','op2','ctl')

Definition at line 64 of file ajax_card.php.

Referenced by compute_variable().

◆ $xml

switch ( $op2) $xml =escape_xml($html)

Definition at line 808 of file ajax_card.php.