本文整理汇总了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'>";