🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home
/
users
/
2
/
fujibow
/
web
/
@180914
/
solution
/
fujibow
/
public
✏️
Editing: Monthly_index.cgi
#!/usr/bin/perl -- #********************************************************** # ����ץ�ץ���ࡡ�ģ¤��ͤ��ɤ߹���Ǥ��Τޤ�ɽ�� #********************************************************** #=====�������============================================== use dbAccess1; # DB����⥸�塼�� require './cgi-lib.pl'; # http�ѥ⥸�塼�� #=====�ѿ���============================================== # DB�ǡ������Ǽ�������� my (@mData,$sql,$user_name,$user_id_mask); # ���ѥ����� my ($i,$j); # ���ѥե饰 my $flag; # �Ǹ������ꥹ���� my $Listvalue; # �ե�����ǡ�����Ǽ my %form_data; #=====�����============================================== my $homeURL="/solution/fujibow/public"; my $imageURL="$homeURL/images"; my $mContentType = '<META http-equiv="Content-Type" content="text/html; charset=EUC-JP">'; #=====�ե�����ǡ�����Ǽ���================================ &ReadParse(\%form_data); #=====main���============================================== { my $sql = "select * from T_M_STORE WHERE VALID_FLAG='1'"; @mData = dbAccess1::getSelect_data($sql); if ($mData[0] == 0){ &errorOut("notfound"); }else{ &getCookie(); if($Listvalue eq ""){ $Listvalue="???"; } $Listvalue = $COOKIE{'STORE_CODE'}; # $Date_Y = $COOKIE{'OBJECT_DATE_Y'}; # $Date_M = $COOKIE{'OBJECT_DATE_M'}; # $Date_D = $COOKIE{'OBJECT_DATE_D'}; &outHTML(); } } #=========================================================== #=====Error���============================================== sub errorOut { my $flag = $_[0]; print "Content-type:text/html\n\n"; print <<EOF; <html> <head> <meta http-equiv="Content-Language" content="ja"> $mContentType <META http-equiv="Content-Style-Type" content="text/css"> <title>���顼����</title> </head> <body> <center> <h3>���顼����</h3> <P>Ź������Ͽ����Ƥ��ޤ��������ƥ����Ԥˤ���ǧ�ꤤ�ޤ�</p> <hr> <a href="JavaScript:history.back()"><IMG src="$imageURL/button2.gif" width="67" height="52" border="0" alt="�������"></a> </center> </body> </html> EOF } #=====HTML����============================================== sub outHTML { print "Content-type:text/html\n\n"; print <<EOF; <html> <head> <meta http-equiv="Content-Language" content="ja"> $mContentType <title>�ٻ��ɿ幩�ȡ�������Web�����ƥࡡ��˥塼����</title> <link rel="stylesheet" type="text/css" href="default.css"/> <script language="JavaScript"> function goNext(inFlag){ // ���å����� setCookie("STORE_CODE", document.frmMain.T_STORE_CODE.value); if (inFlag == 1){ document.frmMain.action = "monthlyStatus.cgi"; }else if (inFlag == 2){ document.frmMain.action = "dailyPosUpload.cgi"; }else if (inFlag == 3){ document.frmMain.action = "monthlyInputSiire.cgi"; } document.frmMain.submit(); } function setCookie(key, val, tmp) { tmp = key + "=" + escape(val) + "; "; tmp = tmp + "expires=Tue, 31-Dec-2030 23:59:59; "; document.cookie = tmp; } </script> </head> <body> <center> <form name="frmMain" method="POST"> <TABLE border="1" width="40%"> <TR><TD width="20%" bgcolor="#99CCFF"><FONT color="#FFFFFF">Ź��̾</FONT></TD> <TD width="50%"> <p align="left"><select size="1" name="T_STORE_CODE"> EOF # ���ʸ�롼��(����ǡ����������ܤʤΤ�$i+4) for ($i=0; $i<scalar(@mData); $i=$i+4){ if($Listvalue eq $mData[$i]){ print <<EOF; <option value="$mData[$i]" selected>$mData[$i+1]</option> EOF }else{ print <<EOF; <option value="$mData[$i]">$mData[$i+1]</option> EOF } } print <<EOF; </select></p> </TR> </TABLE> </form> <hr> <br> <table border="1" width="60%"> <tr> <td width="2%" height="30"><IMG border="0" src="images/point.gif" width="13" height="13"></td> <td width="98%" height="30"><a href="JavaScript:goNext(1)"><IMG src="images/monthlyGet.gif" border="0"></a></td> </tr> <tr> <td width="2%" height="30"><IMG border="0" src="images/point.gif" width="13" height="13"></td> <td width="98%" height="30"><a href="JavaScript:goNext(2)"><IMG src="images/DailyEstimate.gif" border="0"></a></td> </tr> <tr> <td width="2%" height="30"><IMG border="0" src="images/point.gif" width="13" height="13"></td> <td width="98%" height="30"><a href="JavaScript:goNext(3)"><IMG src="images/monthlyInputSiire.gif" border="0"></a></td> </tr> </table> </center> </body> </html> EOF } sub getCookie { local($xx, $name, $value); foreach $xx (split(/; */, $ENV{'HTTP_COOKIE'})) { ($name, $value) = split(/=/, $xx); $value =~ s/%([0-9A-Fa-f][0-9A-Fa-f])/pack("C", hex($1))/eg; $COOKIE{$name} = $value; } }
💾 Save Changes
❌ Cancel