QJ_kijelolNAPI.inc
Line #0:<?php
Line #1:
Line #2:// echo('<br><hr><br>_POST[Qid] <br>');
Line #3:
Line #4:$i=0;
Line #5:
Line #6://echo('<table width=600 height=40 border=1>');
Line #7:
Line #8:while (list ($key, $val) = each ($_POST[Qid])) {
Line #9: $i++;
Line #10:// echo '<tr><td ALIGN="left">'.$i.'</td><td ALIGN="right">'."$key ".'</td><td ALIGN="left">'.($val)."</td></tr>";
Line #11:
Line #12:$wid=$key;
Line #13:
Line #14:$SQL = "select * from `qj_jegy` WHERE wid='".$wid."'";
Line #15:$sor=mysql_query($SQL) or die($SQL." Hiba !");
Line #16:$j_sor = mysql_fetch_array( $sor );
Line #17:
Line #18:$dk=$j_sor[datum_kod];
Line #19:$datum_kod=$dk;
Line #20:$ar=$j_sor[ar];
Line #21:$statusz=$j_sor[statusz];
Line #22:$databsz=$j_sor[szek_kod].$j_sor[datum_kod];
Line #23:
Line #24:$ipos=strpos($val,'/') ;
Line #25:// echo '<tr><td ALIGN="left">'.$SQL.'</td><td ALIGN="right">'."$databsz".'</td><td ALIGN="left">'.($ipos)."</td></tr>";
Line #26:
Line #27:if ($ipos>0)
Line #28:{
Line #29:
Line #30:
Line #31: $_SESSION['feldmod']=1;
Line #32: $_SESSION['arforma']=2;
Line #33: $_SESSION['arforma1']=substr($val,$ipos-strlen($val)+1);
Line #34: $ear=substr($val,0,$ipos);
Line #35:
Line #36:$keres3 = "SELECT * FROM qj_musor WHERE datum_kod='$dk'";
Line #37:
Line #38:
Line #39:$musor = mysql_fetch_array( $eredmeny3 );
Line #40:
Line #41:$_SESSION['databsz']=$databsz;
Line #42:$_SESSION['katind('.$databsz.')']=1;
Line #43:$_SESSION['ear('.$databsz.')']=$ear;
Line #44:$_SESSION['ar_forma('.$databsz.')']=$_SESSION['arforma1'];
Line #45:$_SESSION['arselect('.$databsz.')']=1;
Line #46:
Line #47:if ($musor[erkezesi]=="Y" )
Line #48:
Line #49: else
Line #50:$_SESSION['szinfo['.$databsz.']']=$j_sor[szoveg];
Line #51:
Line #52:$_SESSION['jfej('.$databsz.')']=$musor[cim];
Line #53:$_SESSION['dkod('.$databsz.')']=$datum_kod;
Line #54:
Line #55:// echo '<tr><td ALIGN="left">'.$musor[cim].'</td><td ALIGN="right">'."$j_sor[szoveg]".'</td><td ALIGN="left">'.$_SESSION['szinfo['.$databsz.']']."</td></tr>";
Line #56:
Line #57:
Line #58: $v=$v."<option value='".$_SESSION[arselect]."' ".$s.">".$_SESSION[ar_forma]."</option>";
Line #59:
Line #60:$_SESSION[arforma]=$_SESSION['ar_forma('.$databsz.')'];
Line #61:$_SESSION[armax]=1;
Line #62:$_SESSION[arselect]=$_SESSION['arselect('.$databsz.')'];
Line #63:$_SESSION[arselect1]=$_SESSION['arselect('.$databsz.')'];
Line #64:
Line #65:$_SESSION[arforma1]=$_SESSION['ar_forma('.$databsz.')'];
Line #66:
Line #67:
Line #68:
Line #69:$_SESSION[cimind]=$j_sor[vevo_kod];
Line #70:
Line #71:
Line #72:
Line #73://////////
Line #74:} else {
Line #75://////////
Line #76:
Line #77:unset($_SESSION['databsz']);
Line #78:unset($_SESSION['katind('.$databsz.')']);
Line #79:unset($_SESSION['ear('.$databsz.')']);
Line #80:unset($_SESSION['ar_forma('.$databsz.')']);
Line #81:unset($_SESSION['arselect('.$databsz.')']);
Line #82:unset($_SESSION['szinfo['.$databsz.']']);
Line #83:unset($_SESSION['jfej('.$databsz.')']);
Line #84:unset($_SESSION['dkod('.$databsz.')']);
Line #85:
Line #86:}}
Line #87:
Line #88://echo('</table>');
Line #89:// echo('<br><hr>');
Line #90:
Line #91://include("QJ_varlist.php");
Line #92:
Line #93://echo $j_sor[wid]."/".$j_sor[szoveg]."/".$j_sor[szek_kod]."/".$j_sor[datum_kod];
Line #94:
Line #95://echo $_SESSION[arforma]."/".$_SESSION[arselect].$_SESSION[arforma1]."/".$_SESSION[arselect1];
Line #96:
Line #97:// window.open('ures1.php', 'alfej');
Line #98:// window.open('ures1.php', 'infoframe');
Line #99:
Line #100:echo "<script>
Line #101: window.open('QJ_kijelol.php', 'sframe');
Line #102: </script>";
Line #103:exit;
Line #104:
Line #105:
Line #106:?>