Ejemplo n.º 1
0
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Insert new API Key</h3>
                    </div>
                    <div class="panel-body">
                        <i class="fa fa-warning fa-fw"></i> Please only add relevant characters to your account <br>
                        <i class="fa fa-warning fa-fw"></i> More characters means longer login times <br><br>
<?php 
api_val_form($character_get, $con);
?>
</div>
                </div>
            </div>
        </div>
<?php 
$content->drawFooter();
?>
</div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-8 -->
                
                <!-- /.col-lg-4 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <script>
    $(document).ready(function() {
Ejemplo n.º 2
0
function drawDashTable($character_get, $getTransactions)
{
    $content2 = new content();
    ?>
            <div class="panel-body">
                 <div class="dataTable_wrapper">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-dashboard">
                       <thead>
                            <tr>
                            <th>Item</th>
                            <th>Time</th>
                            <th>Type</th>
                            <th>Q</th>
                            <th>ISK/u</th>
                            <th>Station</th>
                            </tr>
                        </thead>
                        <tbody>
                                               
                                                <?php 
    while ($pow = mysqli_fetch_array($getTransactions, MYSQLI_ASSOC)) {
        $typeid = $pow['item_id'];
        $name = $pow['item_name'];
        $time = $pow['time'];
        $transaction = $pow['transaction_type'];
        if ($transaction == 'Buy') {
            $icon_trans = "<img src='../assets/buy.png'>";
            $t = "<font color='white'>1</font>";
        } else {
            $icon_trans = "<img src='../assets/sell.png'>";
            $t = "<font color='white'>2</font>";
        }
        $quantity = $pow['quantity'];
        $price_unit = $pow['price_unit'];
        $imgpath = "../Types/" . $typeid . "_32.png";
        $stationName = $pow['station_name'];
        echo "<tr><td>" . "<img src='{$imgpath}'>" . $name . "</td>" . "<td>" . $time . "</td>" . "<td>" . $t . $icon_trans . "</td>" . "<td align = 'right'>" . $quantity . "</td>" . "<td align = 'right'>" . number_format($price_unit) . "</td>" . "<td>" . $stationName . "</td></tr>";
    }
    ?>
                                                
                                            </tbody>
                                        </table>
                                    </div>
                                    <!-- /.table-responsive -->
                                <!-- /.col-lg-4 (nested) -->
                                <!-- /.col-lg-8 (nested) -->
                            <!-- /.row -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <?php 
    $content2->drawFooter();
    ?>
                        </div>
                        <!-- /.panel-body -->
                    
                    <!-- /.panel -->
                </div>
<?php 
}