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