🚀 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
/
admin
✏️
Editing: pub_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/admin"; my $imageURL="$homeURL/images"; my $ownURL="pub_inex.cgi"; 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="???"; } &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> $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 = "dailyInput.cgi"; }else if (inFlag == 2){ document.frmMain.action = "dailyInputCard.cgi"; }else if (inFlag == 3){ document.frmMain.action = "dailyInputSiire.cgi"; }else if (inFlag == 4){ document.frmMain.action = "monthlyInputSiire.cgi"; }else if (inFlag == 5){ document.frmMain.action = "siireUpdate.cgi"; }else if (inFlag == 6){ document.frmMain.action = "hinsyuUpdate.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> <div> <table border="0" width="205" height="31"> <tr> <td width="205" height="31" bgcolor="#FFFFFF"> <p align="center"><img border="0" src="$imageURL/tenpo_menu.gif" width="129" height="20"></td> </tr> </table> </div> <form name="frmMain" method="POST"> <p align="center"><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> </form> <hr> <table border="0" width="17%"> <tr> <td width="98%" height="25" colspan="2"><img border="0" src="$imageURL/Daily.gif"></td> </tr> <tr> <td width="2%" height="27"><a href="JavaScript:goNext(1)"><img border="0" src="$imageURL/point.gif" width="13" height="13"></a></td> <td width="98%" height="27"><a href="JavaScript:goNext(1)"><img border="0" src="$imageURL/dailyInput.gif"></a></td> </tr> <tr> <td width="2%" height="25"><a href="JavaScript:goNext(2)"><img border="0" src="$imageURL/point.gif" width="13" height="13"></a></td> <td width="98%" height="25"><a href="JavaScript:goNext(2)"><img border="0" src="$imageURL/dailyInputCard.gif"></a></td> </tr> <tr> <td width="2%" height="25"><a href="JavaScript:goNext(3)"><img border="0" src="$imageURL/point.gif" width="13" height="13"></a></td> <td width="98%" height="25"><a href="JavaScript:goNext(3)"><img border="0" src="$imageURL/dailyInputSiire.gif"></a></td> </tr> <tr> <td width="98%" height="25" colspan="2"><img border="0" src="$imageURL/month.gif"><br></td> </tr> <tr> <td width="2%" height="25"><a href="JavaScript:goNext(4)"><img border="0" src="$imageURL/point.gif" width="13" height="13"></a></td> <td width="98%" height="25"><a href="JavaScript:goNext(4)"><img border="0" src="$imageURL/monthlyInputSiire.gif"></a></td> </tr> <tr> <td width="98%" height="25" colspan="2"><img border="0" src="$imageURL/zuiji.gif"><br></td> </tr> <tr> <td width="2%" height="25"><a href="JavaScript:goNext(5)"><img border="0" src="$imageURL/point.gif" width="13" height="13"></a></td> <td width="98%" height="25"><a href="JavaScript:goNext(5)"><img border="0" src="$imageURL/siireUpdate.gif"></a></td> </tr> <tr> <td width="2%" height="25"><a href="JavaScript:goNext(6)"><img border="0" src="$imageURL/point.gif" width="13" height="13"></a></td> <td width="98%" height="25"><a href="JavaScript:goNext(6)"><img border="0" src="$imageURL/hinsyu_toroku.gif"></a></td> </tr> </table> <hr> </center> </body> </html> EOF } sub getCookie{ local($CookieValue, $xx, $name, $value); $Cookievalue = $ENV{'HTTP_COOKIE'}; ($name, $value) = split(/=/, $Cookievalue); # $value = s/%([0-9A-Fa-f][0-9A-Fa-f])/pack("C", hex($1))/eg; $Listvalue = $value; }
💾 Save Changes
❌ Cancel