Esempio n. 1
0
echo '<div class="FacetSeparatorTD" align="center">'.$script_transl['in_rows_title']."</div>\n";
echo "<table class=\"Tlarge\">\n";
echo "<input type=\"hidden\" value=\"".$form['in_descri']."\" name=\"in_descri\" />\n";
echo "<input type=\"hidden\" value=\"".$form['in_pervat']."\" name=\"in_pervat\" />\n";
echo "<input type=\"hidden\" value=\"".$form['in_unimis']."\" name=\"in_unimis\" />\n";
echo "<input type=\"hidden\" value=\"".$form['in_prezzo']."\" name=\"in_prezzo\" />\n";
echo "<input type=\"hidden\" value=\"".$form['in_id_mag']."\" name=\"in_id_mag\" />\n";
echo "<input type=\"hidden\" value=\"".$form['in_annota']."\" name=\"in_annota\" />\n";
echo "<input type=\"hidden\" value=\"".$form['in_scorta']."\" name=\"in_scorta\" />\n";
echo "<input type=\"hidden\" value=\"".$form['in_pesosp']."\" name=\"in_pesosp\" />\n";
echo "<input type=\"hidden\" value=\"".$form['in_status']."\" name=\"in_status\" />\n";
echo "<input type=\"hidden\" value=\"".$form['hidden_req']."\" name=\"hidden_req\" />\n";
echo "<tr>\n";
echo "<tr class=\"FacetColumnTD\">\n";
echo "<td>".$script_transl['item'].": \n";
$select_artico = new selectartico("in_codart");
$select_artico->addSelected($form['in_codart']);
$select_artico->output(substr($form['cosear'],0,20),$form['in_artsea']);
echo $script_transl['search']."\n";
$gForm->variousSelect('in_artsea',$script_transl['in_artsea_value'],$form['in_artsea'],'FacetDataTDsmall',false);
echo "\t </td>\n";
echo "<td>\n";
echo $script_transl['quanti'].": \n";
echo "<input type=\"text\" value=\"".$form['in_quanti']."\" maxlength=\"11\" size=\"7\" name=\"in_quanti\" tabindex=\"25\">\n";
echo "\t </td>\n";
echo "<td>\n";
echo "<input type=\"image\" name=\"in_submit\" src=\"../../library/images/vbut.gif\" title=\"".$script_transl['submit'].$script_transl['thisrow']."!\" tabindex=\"26\">\n";
echo "\t </td>\n";
echo "\t </tr>\n";
echo "\t<tr class=\"FacetColumnTD\">\n";
echo "\t<td colspan=\"3\">".$script_transl['tiprig'].": \n";
Esempio n. 2
0
   $select_vettor -> addSelected($form["vettor"]);
   $select_vettor -> output();
}
echo "</td></tr></table>\n";
echo "<div class=\"FacetSeparatorTD\" align=\"center\">$script_transl[1]</div>\n";
echo "<table class=\"Tlarge\">\n";
echo "<input type=\"hidden\" value=\"{$form['in_descri']}\" name=\"in_descri\" />\n";
echo "<input type=\"hidden\" value=\"{$form['in_pervat']}\" name=\"in_pervat\" />\n";
echo "<input type=\"hidden\" value=\"{$form['in_unimis']}\" name=\"in_unimis\" />\n";
echo "<input type=\"hidden\" value=\"{$form['in_prelis']}\" name=\"in_prelis\" />\n";
echo "<input type=\"hidden\" value=\"{$form['in_id_mag']}\" name=\"in_id_mag\" />\n";
echo "<input type=\"hidden\" value=\"{$form['in_annota']}\" name=\"in_annota\" />\n";
echo "<input type=\"hidden\" value=\"{$form['in_pesosp']}\" name=\"in_pesosp\" />\n";
echo "<input type=\"hidden\" value=\"{$form['in_status']}\" name=\"in_status\" />\n";
echo "<tr><td class=\"FacetColumnTD\">$script_transl[15]: ";
$select_artico = new selectartico("in_codart");
$select_artico -> addSelected($form['in_codart']);
$select_artico -> output($form['cosear'],$form['in_artsea']);
echo "ricerca per <select name=\"in_artsea\" class=\"FacetDataTDsmall\">\n";
$selArray = array('C'=>'Codice articolo', 'B'=>'Codice a barre','D'=>'Descrizione');
foreach ($selArray as $key => $value) {
    $selected="";
    if(isset($form["in_artsea"]) and $form["in_artsea"] == $key) {
        $selected = " selected ";
    }
    echo "<option value=\"$key\" $selected > $value </option>";
}
echo "</select>\n";
echo "</TD><TD class=\"FacetColumnTD\">$script_transl[16]: <input type=\"text\" value=\"{$form['in_quanti']}\" maxlength=\"11\" size=\"7\" name=\"in_quanti\" tabindex=\"5\" accesskey=\"q\">\n";
echo "</TD><TD class=\"FacetColumnTD\" align=\"right\"><input type=\"image\" name=\"in_submit\" src=\"../../library/images/vbut.gif\" tabindex=\"6\" title=\"".$script_transl['submit'].$script_transl['thisrow']."!\">\n";
echo "</td></tr>\n";
Esempio n. 3
0
echo "</td></tr>\n";
echo "<tr>\n";
echo "<td class=\"FacetFieldCaptionTD\">$script_transl[6] : </td><td class=\"FacetDataTD\">\n";
echo "<input type=\"text\" name=\"base_percent\" value=\"".$form['base_percent']."\" maxlength=\"5\" size=\"5\" class=\"FacetInput\">";
echo "</td></tr>\n";
echo "</table>\n";
echo "<div class=\"FacetSeparatorTD\" align=\"center\">$script_transl[10] $script_transl[7] / $script_transl[8]</div>\n";
// inizio rigo inserimento
echo "<table class=\"Tlarge\">\n";
echo "<input type=\"hidden\" value=\"".$form['in_status']."\" name=\"in_status\" />\n";
echo "<tr><td class=\"FacetColumnTD\">$script_transl[7] :\n";
$select_catmer = new selectcatmer('in_cod_catmer');
$select_catmer -> addSelected($form['in_cod_catmer']);
$select_catmer -> output();
echo "</td><td class=\"FacetColumnTD\">$script_transl[8] :\n";
$select_artico = new selectartico('in_cod_articolo');
$select_artico -> addSelected($form['in_cod_articolo']);
$select_artico -> output($form['cosear'],'C');
echo "</td><td class=\"FacetColumnTD\">$script_transl[9] : <input type=\"text\" value=\"".$form['in_percentuale']."\" maxlength=\"5\" size=\"5\" name=\"in_percentuale\">\n";
echo "</td><td class=\"FacetColumnTD\" align=\"right\"><input type=\"image\" name=\"in_submit\" src=\"../../library/images/vbut.gif\" tabindex=\"6\" title=\"".$script_transl['submit'].$script_transl['thisrow']."!\">\n";
echo "</td></tr>\n";
// fine rigo inserimento
echo "<tr><td colspan=\"5\"><hr></td></tr>\n";
// inizio righi già inseriti
foreach ($form['righi'] as $key => $value) {
        echo "<input type=\"hidden\" value=\"".$value['status']."\" name=\"righi[$key][status]\">\n";
        echo "<input type=\"hidden\" value=\"".$value['id_provvigione']."\" name=\"righi[$key][id_provvigione]\">\n";
        echo "<tr>\n";
        if  ($value['cod_catmer']>0){
            $catmer = gaz_dbi_get_row($gTables['catmer'],'codice',$value['cod_catmer']);
            echo "<td><input type=\"hidden\" value=\"".$value['cod_catmer']."\" name=\"righi[$key][cod_catmer]\">\n