Plugins  LAST
 All Data Structures Files Functions Variables Pages
Functions | Variables
form_parameter.php File Reference

Go to the source code of this file.

Functions

 show ($p_code, $p_desc)
 

Variables

global $tab ="opout"
 
 $tab_default =(isset ($_REQUEST['tab']))?$_REQUEST['tab']:'opout'
 
 $ip_tva =new IPoste('ATVA',$atva)
 
 $lib =$cn->get_value("select pcm_lib from tmp_pcmn where pcm_val=$1",array($atva))
 

Function Documentation

show (   $p_code,
  $p_desc 
)

Definition at line 6 of file form_parameter.php.

References $_REQUEST, $cn, $dossier, $plugin_code, $tab, and id.

Referenced by add_coprop(), appel_fond_show(), copro_show_list(), delete_param_detail(), rapav_declaration_display(), rapav_form_def(), rapav_form_param(), rapav_listing_display(), show_declaration(), show_listing_formula(), show_rapport_formula(), show_selected_material(), and tva_show_param().

6  {
7  global $cn,$tab;
8  echo "<h2>".h($p_code)." ".$p_desc."</h2>";
9  $plugin_code=$_REQUEST['plugin_code'];
11  $a_code=$cn->get_array("
12  select pi_id, pc.tva_id,tva_label,tva_comment,tva_rate, pcm_val
13  from tva_belge.parameter_chld as pc
14  left join tva_rate as tv on (pc.tva_id=tv.tva_id)
15  where pcode=$1 order by pi_id",
16  array($p_code));
17  if (sizeof($a_code) == 0) {
18  echo '<span class="notice" style="display:block">Aucun paramètre donné </span>';
19 
20  echo HtmlInput::button("add_param","Ajout paramètre","onclick=\"show_addparam('$p_code','$plugin_code','$dossier','$tab');\"");
21  return;
22  }
23  $n_max=sizeof($a_code);
24  echo "<table class=\"result\">";
25  echo "<tr>";
26  echo th("Code TVA");
27  echo th("Label");
28  echo th("Description");
29  echo th("Taux");
30  echo th("utilisant le poste comptable");
31  echo "</tr>";
32  for ($i=0;$i<$n_max;$i++)
33  {
34  echo "<tr>";
35  echo td($a_code[$i]['tva_id']);
36  echo td($a_code[$i]['tva_label']);
37  echo td($a_code[$i]['tva_comment']);
38  echo td($a_code[$i]['tva_rate']);
39  echo td("Poste comptable :".$a_code[$i]['pcm_val']);
40  echo '<td>';
41  echo '<form id="f'.$a_code[$i]['pi_id'].'" method="POST">';
42  echo HtmlInput::hidden("pi_id",$a_code[$i]['pi_id']);
43  echo HtmlInput::hidden("tab",$tab);
44  echo HtmlInput::anchor("Effacer","","onclick=\"if ( confirm('Vous confirmez?')) { $('f".$a_code[$i]['pi_id']."').submit(this);} else {return false;}\"");
45  echo "</form>";
46  echo '</td>';
47  echo "</tr>";
48  }
49  echo "</table>";
50  echo HtmlInput::button("add_param","Ajout paramètre","onclick=\"show_addparam('$p_code','$plugin_code','$dossier','$tab');\"");
51 }
$select_type id
$dossier
Definition: index.php:32
$plugin_code
Definition: show_list.php:101
global $tab
$_REQUEST['sb']
Definition: am_print.php:39
global $cn

Variable Documentation

$ip_tva =new IPoste('ATVA',$atva)

Definition at line 128 of file form_parameter.php.

$lib =$cn->get_value("select pcm_lib from tmp_pcmn where pcm_val=$1",array($atva))

Definition at line 134 of file form_parameter.php.

Referenced by Ext_Tva\propose_form().

$tab ="opout"

Definition at line 5 of file form_parameter.php.

Referenced by show().

$tab_default =(isset ($_REQUEST['tab']))?$_REQUEST['tab']:'opout'

Definition at line 54 of file form_parameter.php.