예제 #1
0
    ::-webkit-input-placeholder {

        font-size: 20px;
    }
    :-moz-placeholder {font-size: 20px;}
    :-ms-input-placeholder {font-size: 20px;}

</style>

<?php 
$day_id = $_REQUEST["set"];
$day = PlanDays::find_by_id($id = $day_id);
$plan_id = $day->plan_id;
$plan = Plan::find_by_id($id = $plan_id);
$results = ExerciseInstances::find_all_by_day_id($my_id = $day_id);
$fitness = Exercise::find_by_id($id = 4);
?>

<h2>Plan Name:</h2>
<input placeholder="<?php 
echo $plan->plan_name;
?>
" />


<h2>Day Name:</h2>
<input placeholder="<?php 
echo $day->day_name;
?>
" />
예제 #2
0
	<div class="col-xs-6">
		
		<h3 style='text-align: center;'> Exercise Days: </h3>
		<br>
		
		<div id='sortable'>
			
	<?php 
$results = PlanDays::find_all_by_plan_id($id = $plan);
foreach ($results as $result) {
    echo "<div id='rcorners2'>";
    echo "<h3 style='text-align: center;'>";
    echo $result->day_name;
    echo "</h3>";
    echo "\n\t<table style='margin-left:auto; margin-right:auto;'>\n\t<tbody id='sortable2'>\n\t<tr class='ui-state-disabled'>\n\t<th>Exercise&nbsp;&nbsp;</th>\n\t<th>Duration&nbsp;&nbsp;</th>\n\t<th>&nbsp;&nbsp;&nbsp;&nbsp;</th>\n\t</tr> ";
    $resultados = ExerciseInstances::find_all_by_day_id($my_id = $result->id);
    foreach ($resultados as $resultado) {
        $fitness = Exercise::find_by_id($id = $resultado->exercise_id);
        echo "<tr>\n\t<td>" . $fitness->exercise_name . "&nbsp;&nbsp;</td>\n\t<td>" . $resultado->exercise_duration . " sec.&nbsp;&nbsp;</td>\n\t<td><div onclick='dltexercize()' style='display: inline'>\n\t<h5 style='display: inline; color: firebrick'> &nbsp; &nbsp; x</h5>\n\t</div></td></tr>";
    }
    echo "</tbody>";
    echo "</table>";
    echo "</div>";
}
?>
		
		</div>
		
	<br>
	<br>