コード例 #1
0
    ?>
 
					<div class="group"><div class="title">Abandon Date</div><input class="inputBox" type="date" name="abandondate" value="<?php 
    echo date('Y-m-d', $abandonDate);
    ?>
"/></div>
<?php 
}
?>
					
					<div class="group"><div class="title">Tip</div><input class="inputBox" type="text" name="tip" value="<?php 
echo $tip;
?>
"/></div>		
					<div class="group"><div class="title">Last Action</div><div class="textBox"><?php 
echo GetLastActionString($tradeType, $action);
?>
</div></div>		
					<div style="clear:both"></div>
				</div>
				<div id="Prices" class="editSection">
					<div class="group"><div class="title">Original Price</div><input class="inputBox" type="number" step="any" name="origPrice" value="<?php 
echo $origPrice;
?>
"/></div>
					<div class="group"><div class="title">Abandon Price</div><input class="inputBox" type="number" step="any" name="abandonPrice" value="<?php 
echo $abandonPrice;
?>
"/></div>	
					<div class="group <?php 
echo $hardStopClassName;
コード例 #2
0
						<th class="bottom "> <span class="hastooltip" title="BioBounce Return">Return</span><div class="none">The current return percent of this stock based on the original price.</div> </th>
						<th class="bottom"> <span class="hastooltip" title="Last Action Taken">Last Action</span><div class="none">The last BioBounce action that was taken.</div> </th>
					</tr>
				</thead>
				<tbody>
<?php 
if ($login->showData) {
    $tablestate = "row_odd";
    $someHoldingHidden = false;
    foreach ($holdings as $holding) {
        $hid = $holding['holdings_id'];
        $highlights = highlights::getHoldingsHighlights($hid);
        $last = $holding['last'];
        $action = $holding['holdings_last_action'];
        $tradeType = $holding['holdings_tradetype'];
        $lastAction = GetLastActionString($tradeType, $action);
        $abandonClass = IsAbandoned($action) ? " abandonRow " : "";
        $hasToolTipString = "";
        if (strlen($holding['holdings_tooltip']) > 0) {
            $hasToolTipString = "hastooltip";
        }
        $iAmHolding = personal_holdings::iAmHolding($login->userId, $hid);
        if (!$iAmHolding) {
            $someHoldingHidden = true;
        }
        $checkedString = $iAmHolding ? "checked" : "";
        $noneString = $iAmHolding ? "" : " none ";
        $last = $holding['last'];
        $hitT1 = $holding['holdings_t1_marked'];
        $hitT2 = $holding['holdings_t2_marked'];
        $hitT3 = $holding['holdings_t3_marked'];
コード例 #3
0
    ?>
							<th class="bottom">Return</th>
							<th class="bottom">LastAction</th>
							<th class="bottom">remove</th>
							<th class="bottom">edit</th>
						</tr>
					</thead>
					<tbody>
<?php 
    $tablestate = "row_odd";
    $holdCounter = 0;
    foreach ($holdings[$index] as $holding) {
        $holdCounter++;
        $holdId = $holding['holdings_id'];
        $tId = $holding['ticker_id'];
        $lastActionStr = GetLastActionString($index, $holding['holdings_last_action']);
        $last = $holding['last'];
        $hitT1 = $holding['holdings_t1_marked'];
        $hitT2 = $holding['holdings_t2_marked'];
        $hitT3 = $holding['holdings_t3_marked'];
        $t1 = floatval($holding['holdings_t1']);
        $t2 = floatval($holding['holdings_t2']);
        $t3 = floatval($holding['holdings_t3']);
        $start = $holding['holdings_top_price'];
        if ($index == BREAKDOWN_TRADE || $index == BREAKOUT_TRADE) {
            $start = $holding['holdings_orig_price'];
        }
        $return_percent = holdings::GetReturnPercent($index, $last, $start, $t1, $t2, $t3, $hitT1, $hitT2, $hitT3);
        $t1Class = $hitT1 ? "owned" : "";
        $t2Class = $hitT2 ? "owned" : "";
        $t3Class = $hitT3 ? "owned" : "";