Exemple #1
0
echo "</tr>\n";
echo "<tr>\n";
echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['id_agente']."</td><td class=\"FacetDataTD\" colspan=\"2\">\n";
$select_agente = new selectAgente("id_agente");
$select_agente->addSelected($form["id_agente"]);
$select_agente->output();
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "\t<td class=\"FacetFieldCaptionTD\">".$script_transl['destin']." </td>\n";
echo "\t<td colspan=\"2\" class=\"FacetDataTD\">
      <textarea name=\"destin\" rows=\"2\" cols=\"30\" class=\"FacetInput\">".$form["destin"]."</TEXTAREA></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "\t<td class=\"FacetFieldCaptionTD\">".$script_transl['id_des']." </td><td class=\"FacetDataTD\" colspan=\"2\">\n";
$select_id_des = new selectPartner("id_des");
$select_id_des->selectAnagra('id_des',$form['id_des'],$form['search']['id_des'],'id_des',$script_transl['mesg']);
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "\t<td class=\"FacetFieldCaptionTD\">".$script_transl['iban']." </td>\n";
echo "\t<td colspan=\"2\" class=\"FacetDataTD\">
      <input type=\"text\" name=\"iban\" value=\"".$form['iban']."\" align=\"right\" maxlength=\"27\" size=\"36\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "\t<td class=\"FacetFieldCaptionTD\">".$script_transl['maxrat']."</td>\n";
echo "\t<td colspan=\"2\" class=\"FacetDataTD\">
      <input type=\"text\" name=\"maxrat\" value=\"".$form['maxrat']."\" align=\"right\" maxlength=\"16\" size=\"16\" /></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['ragdoc']."</td><td class=\"FacetDataTD\" colspan=\"2\">\n";
Exemple #2
0
   echo "<td class=\"FacetDataTD\"><INPUT TYPE=\"text\" NAME=\"giotra\" VALUE=\"".$form['giotra']."\" size=\"2\">\n";
   echo "<INPUT TYPE=\"text\" NAME=\"mestra\" VALUE=\"".$form['mestra']."\" size=\"2\">\n";
   echo "<INPUT TYPE=\"text\" NAME=\"anntra\" VALUE=\"".$form['anntra']."\" size=\"2\">\n";
   echo "<A HREF=\"#\" onClick=\"cal.showCalendar('anchor','".$form['mestra']."/".$form['giotra']."/".$form['anntra']."'); return false;\" TITLE=\" cambia la data! \" NAME=\"anchor\" ID=\"anchor\">\n";
   echo "<img border=\"0\" src=\"../../library/images/cal.png\"></A>";
   echo "<input type=\"hidden\" value=\"".$form['vettor']."\" name=\"vettor\">\n";
   echo "<input type=\"hidden\" value=\"".$form['imball']."\" name=\"imball\">\n";
   echo "<input type=\"hidden\" value=\"".$form['id_des']."\" name=\"id_des\">\n";
   echo "<input type=\"hidden\" value=\"".$form['destin']."\" name=\"destin\">\n";
} else { //documento fiscale (DDR,DDL)
   echo "<td></td><td></td>\n";
   echo "<td class=\"FacetFieldCaptionTD\">$script_transl[10]</td>\n";
   echo "<input type=\"hidden\" value=\"".$form['numfat']."\" name=\"numfat\">\n";
   if ($form['id_des'] > 0) {
      echo "<td class=\"FacetDataTD\">\n";
      $select_id_des = new selectPartner('id_des');
      $select_id_des->selectDocPartner('id_des','id_'.$form['id_des'],$form['search']['id_des'],'id_des',$script_transl['mesg'],$admin_aziend['masfor']);
      echo "<input type=\"hidden\" name=\"destin\" value=\"".$form['destin']."\">\n";
   } else {
      echo "<td class=\"FacetDataTD\"><textarea rows=\"1\" cols=\"30\" name=\"destin\" class=\"FacetInput\">".$form["destin"]."</textarea></td>\n";
      echo "<input type=\"hidden\" name=\"id_des\" value=\"".$form['id_des']."\"></td>\n";
      echo "<input type=\"hidden\" name=\"search[id_des]\" value=\"".$form['search']['id_des']."\">\n";
   }
   echo "<td class=\"FacetFieldCaptionTD\">$script_transl[14]</td>";
   echo "<td  class=\"FacetDataTD\">\n";
   $select_vettor = new selectvettor("vettor");
   $select_vettor -> addSelected($form["vettor"]);
   $select_vettor -> output();
}
echo "</td></tr></table>\n";
echo "<div class=\"FacetSeparatorTD\" align=\"center\">$script_transl[1]</div>\n";
Exemple #3
0
echo "<input type=\"hidden\" value=\"".$form['hidden_req']."\" name=\"hidden_req\" />\n";
?>
<input type="hidden" name="ritorno" value="<?php echo $_POST['ritorno']; ?>">
<input type="hidden" name="id_tes" value="<?php echo $form['id_tes']; ?>">
<input type="hidden" name="speban" value="<?php echo $form['speban']; ?>">
<input type="hidden" name="stamp" value="<?php echo $form['stamp']; ?>">
<input type="hidden" name="listin" value="<?php echo $form['listin']; ?>">
<input type="hidden" name="net_weight" value="<?php echo $form['net_weight']; ?>">
<input type="hidden" name="gross_weight" value="<?php echo $form['gross_weight']; ?>">
<input type="hidden" name="units" value="<?php echo $form['units']; ?>">
<input type="hidden" name="volume" value="<?php echo $form['volume']; ?>">
<input type="hidden" name="id_agente" value="<?php echo $form['id_agente']; ?>">
<input type="hidden" name="caumag" value="<?php echo $form['caumag']; ?>">
<div align="center" class="FacetFormHeaderFont"><?php echo $script_transl['title']; ?>
<?php
$select_cliente = new selectPartner('clfoco');
$select_cliente->selectDocPartner('clfoco',$form['clfoco'],$form['search']['clfoco'],'clfoco',$script_transl['search_customer'],$admin_aziend['mascli'],$admin_aziend['mascli']);
?>
</div>
<table class="Tlarge">
<?php
echo "<tr>\n";
echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['seziva']."</td><td class=\"FacetDataTD\" >\n";
$gForm->selectNumber('seziva',$form['seziva'],0,1,3,'FacetDataTD',true);
echo "\t </td>\n";
echo '<input type="hidden" name="indspe" value="'.$form['indspe'].'">';
if (!empty($msg)) {
    echo '<td colspan="2" class="FacetDataTDred">'.$gForm->outputErrors($msg,$script_transl['errors'])."</td>\n";
} else {
    echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['indspe']."</td>";
    echo "\t<td class=\"FacetDataTD\">".$form['indspe']."</td>\n";
Exemple #4
0
    echo "\t\t <option value=\"$counter\"  $selected >$nome_mese</option>\n";
    }
echo "\t </select>\n";
// select del anno
echo "\t <select name=\"annemi\" class=\"FacetSelect\">\n";
for( $counter = $form['annemi']-10; $counter <= $form['annemi']+10; $counter++ )
    {
    $selected = "";
    if($counter == $form['annemi'])
            $selected = "selected";
    echo "\t\t <option value=\"$counter\"  $selected >$counter</option>\n";
    }
echo "\t </select></td></tr>\n";
echo "<tr><td class=\"FacetFieldCaptionTD\">$script_transl[4] : </td><td colspan=\"3\" class=\"FacetDataTD\"><input type=\"text\" value=\"".$form['oggetto']."\" maxlength=\"60\" size=\"60\" name=\"oggetto\"></td>\n";
echo "<td class=\"FacetFieldCaptionTD\">$script_transl[2] : </td><td class=\"FacetDataTD\">\n";
$select_cliente = new selectPartner('clfoco');
$select_cliente->selectDocPartner('clfoco',$form['clfoco'],$form['search']['clfoco'],'clfoco',$script_transl['mesg'],-1);
echo "</td></tr>\n";
echo "<tr><td class=\"FacetFieldCaptionTD\">$script_transl[5] : </td><td colspan=\"3\" class=\"FacetDataTD\"><input type=\"text\" value=\"".$form['c_a']."\" maxlength=\"60\" size=\"60\" name=\"c_a\"></td>\n";
echo "<td class=\"FacetFieldCaptionTD\"></td><td class=\"FacetDataTD\" ";
if (isset($partner['indspe'])){
   echo "title=\"fax: ".$partner['fax']."\">".$partner['indspe']."<br />".$partner['capspe']." ".$partner['citspe']." (".$partner['prospe'].")";
} else {
   echo ">";
}
echo "</td></tr>\n";
echo "<tr><td colspan=\"6\" class=\"FacetFieldCaptionTD\" align=\"center\">$script_transl[8]</td></tr>\n";
echo "<tr><td colspan=\"6\"><textarea id=\"corpo\" name=\"corpo\" class=\"mceClass1\" style=\"width:100%;height:200px;\">".$form["corpo"]."</textarea></td></tr>\n";
echo "<tr><td colspan=\"3\" class=\"FacetFieldCaptionTD\" align=\"right\">$script_transl[9]<input type=\"checkbox\" name=\"signature\" ".$form['signature']."></td>
          <td colspan=\"3\" class=\"FacetFieldCaptionTD\" align=\"right\"><input type=\"submit\" accesskey=\"i\" name=\"ins\" value=\"".$script_transl['submit']." !\" /></td>
          </tr>";
Exemple #5
0
  var month = document.getElementById(calName+'_M').value.toString();
  var day = document.getElementById(calName+'_D').value.toString();
  var mdy = month+'/'+day+'/'+year;
  cal.setReturnFunction('setMultipleValues');
  cal.showCalendar('anchor', mdy);
}
</script>
";
echo "<form method=\"POST\" name=\"contract\">\n";
$gForm = new GAzieForm();
echo "<input type=\"hidden\" name=\"".ucfirst($toDo)."\" value=\"\">\n";
echo "<input type=\"hidden\" value=\"".$form['id_contract']."\" name=\"id_contract\">\n";
echo "<input type=\"hidden\" value=\"".$form['id_body_text']."\" name=\"id_body_text\">\n";
echo "<input type=\"hidden\" value=\"".$form['ritorno']."\" name=\"ritorno\">\n";
echo "<div align=\"center\" class=\"FacetFormHeaderFont\">$title ";
$select_cliente = new selectPartner("id_customer");
$select_cliente->selectDocPartner('id_customer',$form['id_customer'],$form['search']['id_customer'],'id_customer',$script_transl['mesg'],$admin_aziend['mascli']);
echo ' n.'.$form['doc_number']."</div>\n";
echo "<table class=\"Tlarge\">\n";
echo "<tr>\n";
echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['vat_section']."</td><td class=\"FacetDataTD\">\n";
$gForm->selectNumber('vat_section',$form['vat_section'],0,1,3);
echo "\t </td>\n";
if (!empty($msg)) {
    echo '<td colspan="2" class="FacetDataTDred">'.$gForm->outputErrors($msg,$script_transl['errors'])."</td>\n";
} else {
    echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['address']."</td><td>".$cliente['indspe']."<br />";
    echo "</td>\n";
}
echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['conclusion_date']."</td><td class=\"FacetDataTD\">\n";
$gForm->CalendarPopup('conclusion_date',$form['conclusion_date_D'],$form['conclusion_date_M'],$form['conclusion_date_Y']);
Exemple #6
0
echo "\t </tr>\n";
echo "</table>\n";
echo "<table class=\"Tlarge\">\n";

// Se viene inviata la richiesta di leggere la casella di posta...
if (isset($form['order'])) {
    foreach($form['order'] as $k=>$v){
        echo "<input type=\"hidden\" value=\"".$v['name']."\" name=\"order[$k][name]\">\n";
        echo "<input type=\"hidden\" value=\"".$v['text']."\" name=\"order[$k][text]\">\n";
        if ($v['name']=='__ACQUIRED__') {
            echo "<tr><td class=\"FacetFieldCaptionTD\" colspan=\"6\">".$script_transl['name']." n.".$k." &egrave; gi&agrave; stato acquisito</td></tr>\n";
        } else { // acquisisco i dati dell'ordine e li mostro
            echo "<tr>";
            echo "<td class=\"FacetFieldCaptionTD\">".$script_transl['name']." n.".$k." </td>";
            echo "<td class=\"FacetFieldCaptionTD\" colspan=\"6\">".$v['name'];
            $select_cliente = new selectPartner('clfoco'.$k);
            $select_cliente->selectDocPartner('clfoco'.$k,$form['clfoco'.$k],$form['search']['clfoco'.$k],'clfoco'.$k,$script_transl['mesg'],$admin_aziend['mascli']);
            echo " &nbsp;</td>";
            echo "</tr>\n";
            $tot=0;
            $vat=0;
            foreach ($v['row'] as $kr=>$vr) {
               echo "<input type=\"hidden\" value=\"".$vr['codice']."\" name=\"order[$k][row][$kr][codice]\">\n";
               echo "<input type=\"hidden\" value=\"".$vr['descri']."\" name=\"order[$k][row][$kr][descri]\">\n";
               echo "<input type=\"hidden\" value=\"".$vr['unimis']."\" name=\"order[$k][row][$kr][unimis]\">\n";
               echo "<input type=\"hidden\" value=\"".$vr['prezzoweb']."\" name=\"order[$k][row][$kr][prezzoweb]\">\n";
               echo "<input type=\"hidden\" value=\"".$vr['quanti']."\" name=\"order[$k][row][$kr][quanti]\">\n";
               echo "<input type=\"hidden\" value=\"".$vr['taxrate']."\" name=\"order[$k][row][$kr][taxrate]\">\n";
               $tot_r = round($vr['quanti']*floatval($vr['prezzoweb']),2);
               $tot+=$tot_r;
               echo "<tr>";
Exemple #7
0
</script>
<?php
echo "<form method=\"POST\" name=\"docacq\">\n";
echo "<input type=\"hidden\" name=\"".ucfirst($toDo)."\" value=\"\">\n";
echo "<input type=\"hidden\" value=\"{$form['id_tes']}\" name=\"id_tes\">\n";
echo "<input type=\"hidden\" value=\"{$form['seziva']}\" name=\"seziva\">\n";
echo "<input type=\"hidden\" value=\"{$form['tipdoc']}\" name=\"tipdoc\">\n";
echo "<input type=\"hidden\" value=\"{$form['ritorno']}\" name=\"ritorno\">\n";
echo "<input type=\"hidden\" value=\"{$form['change_pag']}\" name=\"change_pag\">\n";
echo "<input type=\"hidden\" value=\"{$form['protoc']}\" name=\"protoc\">\n";
echo "<input type=\"hidden\" value=\"{$form['numdoc']}\" name=\"numdoc\">\n";
echo "<input type=\"hidden\" value=\"{$form['numfat']}\" name=\"numfat\">\n";
echo "<input type=\"hidden\" value=\"{$form['datfat']}\" name=\"datfat\">\n";
echo "<input type=\"hidden\" value=\"".$form['hidden_req']."\" name=\"hidden_req\" />\n";
echo "<div align=\"center\" class=\"FacetFormHeaderFont\">$title ";
$select_fornitore = new selectPartner("clfoco");
$select_fornitore->selectDocPartner('clfoco',$form['clfoco'],$form['search']['clfoco'],'clfoco',$script_transl['mesg'],$admin_aziend['masfor']);
echo "</div>\n";
echo "<table class=\"Tlarge\">\n";
echo "<tr><td class=\"FacetFieldCaptionTD\">$script_transl[4]</td><td class=\"FacetDataTD\">\n";
echo "<select name=\"seziva\" class=\"FacetSelect\">\n";
for ($counter = 1; $counter <= 3; $counter++) {
    $selected="";
    if ($form["seziva"] == $counter) {
       $selected = " selected ";
    }
    echo "<option value=\"".$counter."\"".$selected.">".$counter."</option>\n";
}
echo "</select></td>\n";
if (!empty($msg)) {
    $message = "";