QJ_cimletLIST.inc
Line #0:<?php
Line #1:$L_PHP="QJ_cimletLIST.php";
Line #2:$SelFile="qj_cimlet where future<>'*' ";
Line #3:if (isset($_GET[musor_kod])) $_SESSION[SUBmusor_kod]=$_GET[musor_kod];
Line #4: else $_GET[musor_kod]=$_SESSION[SUBmusor_kod];
Line #5:
Line #6:$wer="";
Line #7:
Line #8:if (isset($_GET[nyomtat])) {
Line #9:?>
Line #10:<LINK rel="stylesheet" href="mike.css" type=text/css>
Line #11:<?PHP
Line #12:} else {
Line #13://include("../_inc_QJ/QC_evhoSELECT.inc");
Line #14:include("../_inc_QJ/QC_listaSELECT.inc");
Line #15:}
Line #16:
Line #17:
Line #18:
Line #19:$login=$_SESSION['login'];
Line #20:
Line #21:
Line #22:IF (ISSET($_SESSION[L_nap]) and $_SESSION[L_nap]<>"*")
Line #23:$wer1=" and left(szoveg,7)='".substr($_SESSION[L_nap],0,7)."'"; else $wer1="";
Line #24:
Line #25:IF (ISSET($_SESSION[L_bizomanyos]) and $_SESSION[L_bizomanyos]<>"*")
Line #26:$login=$_SESSION[L_bizomanyos];
Line #27:
Line #28:$wer2=" and bizomanyos='".$login."'";
Line #29:
Line #30:IF ($_SESSION[L_bizomanyos]=="*" or $_SESSION[L_bizomanyos]=="0" or $_SESSION[L_bizomanyos]=="") $wer2="";
Line #31:
Line #32:if ($_SESSION['admin']=="ADMIN") $nev=$login; else $nev=$_SESSION['login_nev'];
Line #33:
Line #34:
Line #35:///$L_PHP="QJ_cimletLIST.php";
Line #36:include("QJ_listafej.php");
Line #37:
Line #38:echo "<table border=1 width=100%>
Line #39:<tr bgcolor=silver>
Line #40:
Line #41:
Line #42:
Line #43:
Line #44:
Line #45:
Line #46:
Line #47:<td align=right width=50 ><b>Bank</b></td>
Line #48:
Line #49:
Line #50:</tr>";
Line #51:
Line #52:
Line #53:
Line #54://and osszft<>0
Line #55:
Line #56://BI_alert("?");
Line #57:
Line #58://$meres = "SELECT * FROM qj_cimlet where future<>'*' and arforma='*' and bizomanyos<>''
Line #59://and bizomanyos<>'0' $wer1 $wer2 $_SESSION[SUBwer] order by bizomanyos,szoveg ";
Line #60:
Line #61://?//
Line #62:echo($meres."<hr>".$_SESSION[SUBwer]."<hr>*!*<hr>");
Line #63:
Line #64:
Line #65:
Line #66://$meres = "SELECT * FROM qj_cimlet where arforma='*' and bizomanyos<>'' and bizomanyos<>'0' and left(szoveg,4)='2010' $wer1 $wer2 order by bizomanyos,szoveg ";
Line #67:$meres = "SELECT * FROM qj_cimlet where future<>'*' and arforma='*' and bizomanyos<>''
Line #68:and bizomanyos<>'0' $wer1 $wer2 $_SESSION[SUBwer] order by bizomanyos,szoveg ";
Line #69:
Line #70:
Line #71://?//
Line #72:echo($meres."<hr>");
Line #73:
Line #74:$aktbizo="?";
Line #75:$i=0;
Line #76:$ft1=0;
Line #77:$oft1=0;
Line #78:$ft2=0;
Line #79:$oft2=0;
Line #80:$ft3=0;
Line #81:$oft3=0;
Line #82:$ft4=0;
Line #83:$oft4=0;
Line #84:$ft5=0;
Line #85:$oft5=0;
Line #86:
Line #87:$ft6=0;
Line #88:$oft6=0;
Line #89:
Line #90:$oStorno=0;
Line #91:$moStorno=0;
Line #92:
Line #93:while ( $egy_sor = mysql_fetch_array( $mered))
Line #94:{
Line #95:
Line #96:if ($aktbizo<>$egy_sor[bizomanyos] and $aktbizo<>"?") {
Line #97:
Line #98:if ($oStorno>0) {
Line #99:
Line #100:$oStorno=0;
Line #101:} else $hiba="";
Line #102:
Line #103:
Line #104:echo("
Line #105:<tr bgcolor=silver>
Line #106:
Line #107: <td align=right ><b>".number_format($ft1)."</b></td>
Line #108: <td align=right ><b>".number_format($ft2)."</b></td>
Line #109: <td align=right ><b>".number_format($ft6)."</b></td>
Line #110: <td align=right ><b>".number_format($ft3)."</b></td>
Line #111: <td align=right ><b>".number_format($ft4)."</b></td>
Line #112: <td align=right ><b>".number_format($ft5)."</b></td>
Line #113: <td align=right >$hiba</td>
Line #114:</tr>");
Line #115:
Line #116:
Line #117:$ft1=0;
Line #118:$ft2=0;
Line #119:$ft3=0;
Line #120:$ft4=0;
Line #121:$ft5=0;
Line #122:$ft6=0;
Line #123:
Line #124:}
Line #125:
Line #126:++$i;
Line #127:$aktbizo=$egy_sor[bizomanyos];
Line #128:
Line #129:$wid=$egy_sor[wid];
Line #130:$hiba="";
Line #131:
Line #132:IF ($_SESSION[admin]=="ADMIN") $rel="<a target=adatframe href='BiViewTable.php?&tabla=
Line #133:qj_cimlet&sql=// wid=~$wid~ '>".$wid."</a>";
Line #134:else $rel=$i;
Line #135:
Line #136://?//$osszft=$egy_sor[KPft]+$egy_sor[UCS_Ft]+$egy_sor[Bank_Ft]+$egy_sor[Online_Ft]+$egy_sor[UT_Ft];
Line #137:$osszft=$egy_sor[KPft]+$egy_sor[UCS_Ft]+$egy_sor[Bank_Ft]+$egy_sor[Online_Ft]-$egy_sor[ST_Ft];
Line #138:
Line #139:$ft1=$ft1+$osszft;
Line #140:$oft1=$oft1+$osszft;
Line #141://$oft1=$oft1+$egy_sor[osszft];
Line #142:
Line #143:$ft2=$ft2+$egy_sor[KPft];
Line #144:$oft2=$oft2+$egy_sor[KPft];
Line #145:
Line #146:$ft3=$ft3+$egy_sor[UCS_Ft];
Line #147:$oft3=$oft3+$egy_sor[UCS_Ft];
Line #148:
Line #149://?//$ft6=$ft6+$egy_sor[UT_Ft];
Line #150://?//$oft6=$oft6+$egy_sor[UT_Ft];
Line #151:
Line #152:$ft6=$ft6+$egy_sor[ST_Ft];
Line #153:$oft6=$oft6+$egy_sor[ST_Ft];
Line #154:
Line #155:$ft4=$ft4+$egy_sor[Bank_Ft];
Line #156:$oft4=$oft4+$egy_sor[Bank_Ft];
Line #157:
Line #158://$ft5=$ft5+$egy_sor[Online_Ft];
Line #159://$oft5=$oft5+$egy_sor[Online_Ft];
Line #160:
Line #161:$ft5=$ft5+$egy_sor[Kedv_Ft];
Line #162:$oft5=$oft5+$egy_sor[Kedv_Ft];
Line #163:
Line #164:$wnap=$egy_sor[szoveg];
Line #165:$reln="<a target=adatframe href='QJ_napi.php?&L_nap=$wnap&L_biz=$aktbizo'>".$wnap."</a>";
Line #166:
Line #167:if (isset($_SESSION[qontroll])) {
Line #168:
Line #169://$aktbizo=$_GET[bizo];
Line #170://$wnap=$_GET[wnap];
Line #171:
Line #172:$jegy_IR="<a target=adatframe href='QJ_fulljegySEL.php?&aktbizo=".$aktbizo."&wnap=".$wnap."' >";
Line #173:
Line #174:$JSQL="SELECT * FROM qj_jegy where bizomanyos='$aktbizo' and $_SESSION[SQL_elad] and left(logtime,10)='$wnap' and ($_SESSION[SQL_berlet] or $_SESSION[SQL_jegy]) ";
Line #175:
Line #176:
Line #177:
Line #178:$JFT=0;
Line #179:$JDB=0;
Line #180:while ( $Jsor = mysql_fetch_array( $Jeredmeny ))
Line #181:{
Line #182:$JFT=$JFT+$Jsor[ar];
Line #183:++$JDB;
Line #184:}
Line #185:
Line #186:if ($JFT<>$osszft) {
Line #187:$elteres=$JFT-$osszft;
Line #188:
Line #189:
Line #190:else $hiba="";
Line #191:
Line #192:}
Line #193:
Line #194:
Line #195:/*if ($egy_sor[UT_Ft]>0) {
Line #196:
Line #197: $oStorno=$oStorno+$egy_sor[UT_Ft];
Line #198: $moStorno=$moStorno+$egy_sor[UT_Ft];
Line #199:} */
Line #200:
Line #201:if ($egy_sor[ELONY_FT]>0) {
Line #202:
Line #203:}
Line #204:if ($egy_sor[ELONYEL_FT]>0) {
Line #205:
Line #206:}
Line #207:
Line #208://if ($osszft<>0)
Line #209:
Line #210:// <td align=right ><b>".number_format($egy_sor[Kedv_FtOnline_Ft])."</b></td>
Line #211:
Line #212: $rel="<a target=infoframe href='QJ_feladIR.php?&wjid=$wid'><img src='../_Screen/print.png' border=0>".$wid."</a>";
Line #213:
Line #214:echo("
Line #215:<tr>
Line #216: <td >$rel</td>
Line #217: <td >$reln</td>
Line #218: <td >$egy_sor[bizomanyos]</td>
Line #219: <td align=right ><b>".number_format($osszft)."</b></td>
Line #220: <td align=right ><b>".number_format($egy_sor[KPft])."</b></td>
Line #221: <td align=right ><b>".number_format($egy_sor[UT_Ft])."</b></td>
Line #222: <td align=right ><b>".number_format($egy_sor[ST_Ft])."</b></td>
Line #223: <td align=right ><b>".number_format($egy_sor[UCS_Ft])."</b></td>
Line #224: <td align=right ><b>".number_format($egy_sor[Bank_Ft])."</b></td>
Line #225: <td align=right ><b>".number_format($egy_sor[Kedv_Ft])."</b></td>
Line #226: <td align=right >$hiba<b>$egy_sor[MEGJEGYZES]</b></td>
Line #227:</tr>");
Line #228:
Line #229:}
Line #230:
Line #231:
Line #232:if ($oStorno>0) {
Line #233:
Line #234:$oStorno=0;
Line #235:} else $hiba="";
Line #236:
Line #237:
Line #238:echo("
Line #239:<tr bgcolor=silver>
Line #240:
Line #241: <td align=right ><b>".number_format($ft1)."</b></td>
Line #242: <td align=right ><b>".number_format($ft2)."</b></td>
Line #243: <td align=right ><b>".number_format($ft6)."</b></td>
Line #244: <td align=right ><b>".number_format($ft3)."</b></td>
Line #245: <td align=right ><b>".number_format($ft4)."</b></td>
Line #246: <td align=right ><b>".number_format($ft5)."</b></td>
Line #247: <td align=right >$hiba</td>
Line #248:</tr>");
Line #249:
Line #250:
Line #251:if ($oft1<>$ft1) {
Line #252:
Line #253:if ($moStorno>0) {
Line #254:
Line #255:$moStorno=0;
Line #256:} else $hiba="";
Line #257:
Line #258:
Line #259:echo("
Line #260:<tr bgcolor=silver>
Line #261:
Line #262: <td align=right ><b>".number_format($oft1)."</b></td>
Line #263: <td align=right ><b>".number_format($oft2)."</b></td>
Line #264: <td align=right ><b>".number_format($oft6)."</b></td>
Line #265: <td align=right ><b>".number_format($oft3)."</b></td>
Line #266: <td align=right ><b>".number_format($oft4)."</b></td>
Line #267: <td align=right ><b>".number_format($oft5)."</b></td>
Line #268: <td align=right >$hiba</td>
Line #269:</tr>");
Line #270:}
Line #271:
Line #272:echo "
Line #273:</table>";
Line #274:
Line #275://include("QJ_varlist.php");
Line #276:
Line #277:if (isset($_GET[nyomtat])) {
Line #278:include("QJ_listaveg.php");
Line #279:
Line #280:
Line #281:echo("<body onload='printit()'></body>");
Line #282:
Line #283:?>
Line #284:<SCRIPT Language="Javascript">
Line #285:
Line #286:function printit(){
Line #287:
Line #288:window.print();
Line #289:
Line #290:}
Line #291:
Line #292:// End -->
Line #293:</SCRIPT>
Line #294:<?PHP
Line #295:}
Line #296:?>
Line #297:<SCRIPT Language="Javascript">
Line #298:
Line #299://alert("e");
Line #300:
Line #301:function clock_e() {
Line #302:day_e = new Date();
Line #303:hrNow = day_e.getHours();
Line #304:mnNow = day_e.getMinutes();
Line #305:scNow = day_e.getSeconds();
Line #306:miNow = day_e.getTime();
Line #307:
Line #308:hour = hrNow;
Line #309:
Line #310:if (mnNow <= 9) {
Line #311:min = "0" + mnNow;
Line #312:}
Line #313:else (min = mnNow)
Line #314:if (scNow <= 9) {
Line #315:secs = "0" + scNow;
Line #316:} else {
Line #317:secs = scNow;
Line #318:}
Line #319:
Line #320:time = hour + ":" + min + ":" + secs;
Line #321:
Line #322:Visit_e = day_e.getTime();
Line #323://alert(Visit_s);
Line #324:parent.potframe.document.form.Bi_stop.value = time;
Line #325:}
Line #326:clock_e();
Line #327:
Line #328://~*~// QJ_cimletLIST.php
Line #329:
Line #330:</script>