コード例 #1
0
ファイル: index.php プロジェクト: Acepmon/real_number
			<div class="tab-content" style="border: 1px solid lightgray; border-top: none;">
			    <div role="tabpanel" class="tab-pane active" id="al" >
			    	<br>
			    	<div class="col-md-12">
			    		<button class="btn btn-default" data-toggle="modal" data-target="#register_al"><span class="glyphicon glyphicon-plus"></span> Register new</button>
			    	</div>
					<div class="col-md-6">
				  		<h3 class="text-success">Assets <small class="text-success"><span class="glyphicon glyphicon-arrow-up"></span></small></h3>
				  		<table class="table table-hover">
				  			<tr>
				  				<th>Object</th>
				  				<th>Speed</th>
				  			</tr>
				  			<?php 
$db->query("select * from assets order by id desc;");
foreach ($db->resultset() as $asset) {
    $id = $asset['id'];
    $object = $asset['object'];
    $value = $asset['value'];
    $type = $asset['type'];
    $speed = $asset['speed'];
    $sign = "\$";
    if (strcmp($type, "tugrug") == 0) {
        $sign = "₮";
        $type = "t";
    } else {
        if (strcmp($type, "dollar") == 0) {
            $sign = "\$";
            $type = "d";
        }
    }