$atskaite_veids = $_GET["veids"];
$h = $_GET['h'];
array_walk($_POST, 'sab_save');
$output_pdf = isset($_GET['pdf']);
$output_xml = isset($_GET['xml']);
$arrsum = array();
$C_REP = object;
$subMakeAll = false;
if ($atskaite_veids == "akrs") {
    $subMakeAll = true;
}
if ($mlietotajs['g_report'] != 'Y') {
    return;
}
//--------------------------------------------------------------
$prefix_subname = tmp_getTableName($atskaite_veids);
//  die($_POST['pv']);
$pv_array = explode(',', $_POST['pv']);
$akts = $_POST['akts'];
$aktsp = $_POST['aktsp'];
$aktsp = $_POST['aktsp'];
//      if (!$atskaites_kods) { $atskaites_kods = substr($_POST['akts_nr_head'],2,2); }
//      echo $atskaites_kods;
//      if (!$output_pdf) {
if ($i == 0) {
    echo '<html><head><STYLE TYPE=\\"text/css\\"> TD { font-size: 12px; } </STYLE><title>Atskaite</title><meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=UTF-8\\"></head><body><center>';
}
//      }
$check_dir = true;
for ($i = 0; $i < count($pv_array); $i++) {
    $_POST['pavadzime_id'] = $pv_array[$i];
Example #2
0
$h = $_GET['h'];
if ($_GET['template']) {
    $query = "SELECT * FROM g_sabloni where id = '" . $_GET['template'] . "'";
    $query = mysql_query($query);
    $template = mysql_fetch_array($query);
    //print_r($template);
    $query = "SELECT * FROM g_sab_saturs where sablona_id = '" . $template['id'] . "'";
    $query = mysql_query($query);
    while ($row = mysql_fetch_array($query)) {
        $tpl[$row['lauks']] = $row['vertiba'];
    }
    //print_r($tpl);
    $template_ident = $_GET['template'];
}
$veids = get_AtskVeidsByPlaceCode($h);
$tabulaName = tmp_getTableName($veids);
$ar = array('' => '', 'brakis' => 'Brāķis', 'mind_pirms_red' => 'Diametrs pirms red', 'garums' => 'Garums', 'gar_pec_red' => 'Garums pēc redukcijas', 'skira' => 'Šķira', 'suga' => 'Suga');
$query_sabloni = "SELECT * FROM g_sabloni WHERE atskaites_id = {$h} order by id asc";
$r_sabloni = mysql_query($query_sabloni);
if (!session_is_registered('xml_vars')) {
    session_start();
    session_register('xml_vars');
}
?>
  <script type="text/javascript" src="../js_jquery/jquery-1.4.2.js"></script>
  <script type="text/javascript" src="../js_jquery/jquery.uitablefilter.js"></script>
  <script type="text/javascript" src="../js_jquery/sablonu_grupesana.js"></script>
  <script type="text/javascript" src="../js_jquery/exTransfTable.js"></script>
  <script type="text/javascript" src="../js_jquery/thickbox.js"></script>
<!--  <script type="text/javascript" src="../js_jquery/jqModal.js"></script> -->