✏️ 正在编辑: SetApiForAnyone.php
路径:
/home/llpreacharge/public_html/Admin1/SetApiForAnyone.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php include'session.php'; include'connection.php'; include'../Retailers/functions.php'; ?> <html> <head> <title>Set API</title> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" href="images/logo.png" type="image/gif" sizes="16x16"> <!-- Admin CSS File Link --> <link rel="stylesheet" href="css/style.css"> <!-- User JAVA SCRIPT File Link --> <script type="text/javascript" src="js/script.js"></script> <!-- Font Awesome Icone --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <style> .div1{ background:; width:98%; margin:1%; padding:10px; } .div1 input, .div1 select{ height:30px; max-width:200px; font-size:15px; padding:2px 10px; border-radius:5px; border:solid #6b5127 1px; overflow:hidden; margin:5px; } input[type=submit]{ background:#6b5127; color:white; cursor:pointer; transition:1s; } input[type=submit]:hover{ background:white; color:#883333; border:solid #6b5127 1px; transition:1s; } input[type=number]{ width:70px; font-size:14px; padding:0px 0px 0px 10px; } .div2{ background:#f7f7f7; width:100%; float:left; text-align:center; padding:0 10px; overflow:auto; } table{ width:96%; text-align:center; font-size:16px; border-collapse:collapse; padding:2px 10px; margin:0 2%; } table th{ background:#6b5127; color:white; height:40px; border:solid white 1px; padding:2px 5px; } table td{ background:white; height:40px; border:solid black 1px; padding:2px 5px; } #inpDataList{display:none;} #commInp{width:60px; height:25px; padding:1px 4px; font-size:16px; text-align:center;} .fa-check, .fa-ban{font-size:20px;} @media(max-width:768px) { .div1{ background:; width:100%; height:auto; margin:10px 0 0 0; padding:0; text-align:center; overflow:auto; } .div1 input, .div1 select{ width:90%; margin:5px 0px; padding:5px 1px; font-size:10px; } input[type=submit]{ font-size:15px; padding:5px; } input[type=number]{ width:45px; font-size:14px; padding:0px 0px 0px 5px; } #opname{width:50px; font-size:11px; margin:5px 2px; padding:2px;} .div2{ width:100%; margin:10px 0 0 0; padding:0px; text-align:center; } } </style> <link rel="stylesheet" href="css/mediaStyle.css"> </head> <body> <!--Header Divison--> <?php require'header.php'; ?> <!--Container Division--> <div class="container"> <?php include'menu.php'; $uid=$_GET['uid']; ?> <div class="content"> <div class="head"> <div class="title"><p>Set API :-</p></div> <div class="msg"><marquee><?php include'msg.php'; ?></marquee></msg> </div><hr> <div class="data-content"> <script> function setApi(Arg) { var opCode = Arg; var api1 = document.getElementById(opCode+"api1").value; var api2 = document.getElementById(opCode+"api2").value; var AO = document.getElementById(opCode+"AO").value; var TL = document.getElementById(opCode+"TL").value; var LGID = document.getElementById(opCode+"LGID").value; var LGID2 = document.getElementById(opCode+"LGID2").value; var uid = document.getElementById("uid").value; var xmlhttpState = new XMLHttpRequest(); xmlhttpState.open("GET","ajax_setApiForAnyone.php?opCode="+opCode+"&api1="+api1+"&api2="+api2+"&AO="+AO+"&TL="+TL+"&LGID="+LGID+"&LGID2="+LGID2+"&uid="+uid, false) xmlhttpState.send(null); document.getElementById("msgPlace").innerHTML = xmlhttpState.responseText; } </script> <div id="msgPlace"></div> <div class="div1" id="downlinePlace"> <center><h3><?php echo getName($uid); ?></h3></center><br> <input type="number" value="<?php echo $uid; ?>" style="display:none;" id="uid"> <table cellpadding="20" border="2"> <tr> <th>Sl.</th> <th>Operator</th> <th>API1</th> <th>LGID1</th> <th>API2</th> <th>LGID2</th> <th>A.0.</th> <th>T.Limit</th> <th>Action</th> </tr> <?php if(!empty($uid)) { $sl=0; $quOp="SELECT * FROM CommSlab WHERE Userid='$uid'"; $reOp=mysqli_query($con,$quOp); while($dataOp=mysqli_fetch_array($reOp)) { $sl=$sl+1; $opCode=$dataOp['OpCode']; $opCode=$dataOp['OpCode']; echo "<tr>"; echo "<td>".$sl."</td>"; echo "<td id='opname'>".$dataOp['OpName']."</td>"; echo "<td> <select id='".$opCode."api1'>"; $quUseApi="SELECT * FROM UseApi"; $reUseApi=mysqli_query($con,$quUseApi); while($dataUseApi=mysqli_fetch_array($reUseApi)) { if($dataUseApi['Name']==$dataOp['API1']) { echo "<option selected>".$dataUseApi['Name']."</option>"; } else { echo "<option>".$dataUseApi['Name']."</option>"; } } echo "</select> </td>"; echo "<td><input type='number' id='".$opCode."LGID' value='".$dataOp['LapuGroupId']."' style='width:100px'></td>"; echo "<td> <select id='".$opCode."api2'>"; $quUseApi="SELECT * FROM UseApi"; $reUseApi=mysqli_query($con,$quUseApi); while($dataUseApi=mysqli_fetch_array($reUseApi)) { if($dataUseApi['Name']==$dataOp['API2']) { echo "<option selected>".$dataUseApi['Name']."</option>"; } else { echo "<option>".$dataUseApi['Name']."</option>"; } } echo "</select> </td>"; echo "<td><input type='number' id='".$opCode."LGID2' value='".$dataOp['LapuGroupId2']."' style='width:100px'></td>"; echo "<td><input type='number' id='".$opCode."AO' value='".$dataOp['AO']."'></td>"; echo "<td><input type='number' id='".$opCode."TL' value='".$dataOp['TxnLimit']."'></td>"; echo "<td><input type='submit' name='".$opCode."' value='Set API' onclick='setApi($opCode)'></td>"; echo "</tr>"; } } else { echo "<tr><td colspan='10' style='color:red'>User Id Is Empty !</td></tr>"; } ?> </table> </div> </form> </div> </div> </div> <?php require'footer.php'; ?> </body> </html>
💾 保存文件
← 返回文件管理器