?>
</td>
          <td class="preis"><?php 
    echo $row["price"];
    ?>
 €</td>
          <td class="shortcut"><?php 
    echo $row["shortcut"];
    ?>
</td>
          <td class="plmi"><?php 
    echo printSign(StrToPlMi($row["change"]), " €");
    ?>
</td>
          <td class="mlmiproz"><?php 
    echo printSign(StrToPercent($row["change"]), " %");
    ?>
</td>
          <td class="datum"><?php 
    echo datum($row["date"]);
    ?>
</td>
        </tr>
        
        <tr>
        	<td colspan="6">
        			<div style="width:device-width">
        				<!-- Bild -->
        				<div style="float:left; width: 40%; text-align: center;">
        					<a href="http://chart.finance.yahoo.com/z?s=<?php 
    echo $row["shortcut"];
    ?>
</td>
          <td><?php 
    echo $row["menge"];
    ?>
</td>
          <td><?php 
    echo getNameFromStockID($row["stocksID"]);
    ?>
</td>
          <td><?php 
    echo $row["type"];
    ?>
</td>
          <td><?php 
    echo printSign($row["wert"], " €");
    ?>
</td>
        </tr>
        
        <tr>
        	<td colspan="5">
        			<div style="width:device-width padding: 10px;">
        				
								<!-- INFOS -->
        					<p><b>Kauf/Verkauf-Kurs:</b> <?php 
    echo $row["kurs"];
    ?>
 €
        					<p><b>Ursprüngliches Limit/Stop:</b> <?php 
    echo $row["limit"];
    ?>
" width="60%"/>
        					</a>
        				</div>
        				
        				
        				
								<!-- INFOS -->
        				<div style="float:left; width: 60%;">
        					<h4>Infos</h4>
        					<p><b>Aktueller-Kurs:</b> <?php 
    echo aktKurs($row["stockID"]);
    ?>
 €
        					<p><b>Gewinn/Verlust pro Aktie:</b> <?php 
    echo printSign(round(aktKurs($row["stockID"]) - $row["startGeld"] / $row["menge"], 2), " €");
    ?>
        				</div>
        				
        			</div>
        	</td>
        </tr>
        
<?php 
}
?>

      </tbody>
  </table>
</div>
* Der Kurswert jeweils mit der Stückzahl multipliziert
    ?>
				
				<tr id="friend-<?php 
    echo $row["id"];
    ?>
">
        	<td><?php 
    echo $row["name"];
    ?>
</td>
          <td><?php 
    echo $row["id"];
    ?>
</td>
          <td><?php 
    echo printSign($row["gewinn"], " €");
    ?>
</td>
          <td><?php 
    if ($_SESSION['depot'] != $row["id"]) {
        ?>
<button class="btn btn-danger btn-xs" onclick="deleteFriend('<?php 
        echo $row["id"];
        ?>
');">Freund entfernen</button><?php 
    }
    ?>
</td>
        </tr>

        <tr>
</span>
				</div>
				
			</div>
						
			<div class="topflop flop">
				<i>Flop im Depot:</i>
				<div class="info">
					<span class="<?php 
echo $flopClass;
?>
" aria-hidden="true"> </span> <span class="wp-name"><?php 
echo $flopName;
?>
</span> <span class="prozent"><?php 
echo printSign($flopTendenz, " %", "text-success");
?>
</span>
				</div>

			</div>
			
		</div>
	</div>


	<div class="col-xs-12 col-sm-6">
		<h3 class="sub-header">Depotverlauf</h3>
		<div class="well well-lg" style="height: 400px;">
			<div id="gewinnCharts" style="min-width: 310px; width: 100%; height: 100%;"></div>
		</div>
Beispiel #6
0
                }
                if (!isset($key) || $key == "") {
                    die("You must specify a key or keyfile for RC2 decryption.");
                } else {
                    $obj = new dekrypt(base64_encode($hash), $key, isset($iv) ? $iv : '');
                    echo "RC2: " . $obj->DE_rc2();
                }
                break;
            default:
                echo "{$nl}That's not a valid type .{$nl}";
                printUsage();
                die;
                break;
        }
    } else {
        printSign();
        printUsage();
        die;
    }
} elseif (isset($_SERVER['REQUEST_METHOD'])) {
    // Check if it's gonna be used from web
    echo <<<HTML_DOC
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset = "utf-8">
    <meta http - equiv = "X-UA-Compatible" content = "IE=edge">
    <meta name = "viewport" content = "width=device-width, initial-scale=1">
    <title>Dekrypt</title>
    <link rel = "stylesheet" href = "http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <!--