本文整理匯總了PHP中Plan::find_by_id方法的典型用法代碼示例。如果您正苦於以下問題:PHP Plan::find_by_id方法的具體用法?PHP Plan::find_by_id怎麽用?PHP Plan::find_by_id使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plan
的用法示例。
在下文中一共展示了Plan::find_by_id方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
input { width: 250px; height: 40px; font-size: 20px; border: 1px solid #999999; padding: 5px; }
::-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:
height: 100%;
display: block;
margin-left: auto;
margin-right: auto;
}
</style>
<div id="main">
<div class="maininfo2">
<br>
<?php
$plan = $_REQUEST["id"];
$findplan = Plan::find_by_id($id = $plan);
echo "\n \t<h2 style='text-align: center;'>" . $findplan->plan_name . "</h2>\n \t<h4>Description: " . $findplan->plan_description . "</h4>\n \t<h4>Difficulty: " . $findplan->plan_difficulty . "</h4>";
?>
<div class="row">
<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'>";