'; echo JS_SEARCH_POSTE; echo JS_SEARCH_CARD; echo '
'; echo ''; //----------------------------------------------------- // If print is asked // First time in html // after in pdf or cvs //----------------------------------------------------- if ( isset( $_POST['bt_html'] ) ) { require_once("class_acc_account.php"); $go=0; // we ask a poste_id if ( strlen(trim($_POST['poste_id'])) != 0 && isNumber($_POST['poste_id']) ) { if ( isset ($_POST['poste_fille']) ) { $parent=$_POST['poste_id']; $a_poste=getarray($cn,"select pcm_val from tmp_pcmn where pcm_val like '$parent%'"); $go=3; } // Check if the post is numeric and exists elseif ( CountSql($cn,'select * from tmp_pcmn where pcm_val='.FormatString($_POST['poste_id'])) != 0 ) { $Poste=new Acc_Account($cn,$_POST['poste_id']);$go=1; } } if ( strlen(trim($_POST['f_id'])) != 0 ) { require_once("class_fiche.php"); // thanks the qcode we found the poste account $fiche=new fiche($cn); $qcode=$fiche->get_by_qcode($_POST['f_id']); $p=$fiche->strAttribut(ATTR_DEF_ACCOUNT); if ( $p != "- ERROR -") { $go=2; } } // A account is given if ( $go == 1) { echo '