table#plans th,table#plans td {
		border: 1px solid #efefef;
	}
	
	.valor {
		font-size: 16px !important;
		font-weight: bold;
	}
	</style>
	
			<table id="plans" class="clearfix">
				<thead class="clearfix">
					<th class="cel-4 textcenter"></th>
					<?php 
    foreach (Plan::getAll() as $plan) {
        ?>
					<th class="textcenter"><input type="radio" name="plan_id"
						class="radio" value="<?php 
        echo $plan->id;
        ?>
"
						<?php 
        if (isset($_POST['plan_id']) && $_POST['plan_id'] == $plan->id || !array_key_exists('plan_id', $_POST) && $default_plan == $plan->id) {
            echo ' checked ';
        }
        ?>
>
						<?php 
        echo $plan->name;
        ?>
Exemplo n.º 2
0
<?php

if (!file_exists(realpath(dirname(__FILE__)) . '/ai-config.php')) {
    header('Location: /installer.php');
}
$ACCESS_LEVEL = ACCESS_LEVEL_GUEST;
include_once LIB_ROOT . '/pages/page.class.php';
include_once LIB_ROOT . '/plans/plan.class.php';
include_once DOC_ROOT . '/includes/authorization.php';
$plans = new Plan();
$plans_all = $plans->getAll();
Project::getInstance()->getSmarty()->assign('plans', $plans_all);
$investment_plans = '
<table width="100%">
<tbody>
<tr>
<td class="ui-state-hover"><strong>Name</strong></td>
<td class="ui-state-hover"><strong>Min</strong></td>
<td class="ui-state-hover"><strong>Max</strong></td>
<td class="ui-state-hover"><strong>Percents</strong></td>
<td class="ui-state-hover"><strong>Periodicity</strong></td>
<td class="ui-state-hover"><strong>Term</strong></td>
<td class="ui-state-hover"><strong>Comment</strong></td>
</tr>';
foreach ($plans_all as $plan) {
    switch ($plan['periodicy']) {
        case 3600:
            $periodicy = 'h';
            break;
        case 86400:
            $periodicy = 'd';