- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在用 Symfony 重写一个表单。
在旧的 php 页面中,有类似于这张图片的内容。 代码如下所示:
<tr>
<td width="10%" class="form_content2"></td>
<td width="16%"><em>Suspected CP</em></td>
<td width="4%"><input id="FU1_CP_suspect" type="checkbox"
tabindex="64" name="FU1_CP_suspect" value="1"
<?php if (show($patient, 'D_FU1::FU1_CP_suspect') == "1") { ?>
checked="checked" <?php } ?>></td>
<td width="70%" colspan="6">(= child will be assessed for CP again at a
later date)</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="36%" colspan="3"> </td>
<td width="4%" align="center">L</td>
<td width="4%" align="center">R</td>
<td width="46%" colspan="3"> </td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="16%" valign="top" rowspan="6"><i>Spastic CP</i></td>
<td width="4%"><input id="SPcp1" type="radio" tabindex="64"
name="FU1_Spastic_CP" value="1"
<?php if (show($patient, 'D_FU1::FU1_Spastic_CP') == "1") { ?>
checked="checked" <?php } ?> /></td>
<td width="16%">Monoplegia</td>
<td width="4%"><input id="SPcp2" type="radio" tabindex="65"
name="FU1_Monoplegia_LR" value="1"
<?php if (show($patient, 'D_FU1::FU1_Monoplegia_LR') == "1") { ?>
checked="checked" <?php } ?> />
</td>
<td width="4%"><input id="SPcp3" type="radio" tabindex="66"
name="FU1_Monoplegia_LR" value="2"
<?php if (show($patient, 'D_FU1::FU1_Monoplegia_LR') == "2") { ?>
checked="checked" <?php } ?> />
</td>
<td width="16%" valign="top"><i> Dyskinetic
CP</i></td>
<td width="4%"><input id="SPcp4" type="radio" tabindex="73"
name="FU1_Dyskinetic_CP" value="1"
<?php if (show($patient, 'D_FU1::FU1_Dyskinetic_CP') == "1") { ?>
checked="checked" <?php } ?> />
</td>
<td width="26%">Dystonic</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="SPcp5" type="radio" tabindex="67"
name="FU1_Spastic_CP" value="2"
<?php if (show($patient, 'D_FU1::FU1_Spastic_CP') == "2") { ?>
checked="checked" <?php } ?>>
</td>
<td width="40%" colspan="4">Diplegia*<br>
</td>
<td width="4%"><input id="SPcp6" type="radio" tabindex="74"
name="FU1_Dyskinetic_CP" value="2"
<?php if (show($patient, 'D_FU1::FU1_Dyskinetic_CP') == "2") { ?>
checked="checked" <?php } ?>></td>
<td width="26%">Choreoathetotic</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="SPcp7" type="radio" tabindex="68"
name="FU1_Spastic_CP" value="3"
<?php if (show($patient, 'D_FU1::FU1_Spastic_CP') == "3") { ?>
checked="checked" <?php } ?>>
</td>
<td width="70%" colspan="6">Triplegia<br>
</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="SPcp8" type="radio" tabindex="69"
name="FU1_Spastic_CP" value="4"
<?php if (show($patient, 'D_FU1::FU1_Spastic_CP') == "4") { ?>
checked="checked" <?php } ?>>
</td>
<td width="16%">Hemiplegia</td>
<td width="4%"><input id="SPcp9" type="radio" tabindex="70"
name="FU1_Hemiplegia_LR" value="1"
<?php if (show($patient, 'D_FU1::FU1_Hemiplegia_LR') == "1") { ?>
checked="checked" <?php } ?>>
</td>
<td width="4%"><input id="SPcp10" type="radio" tabindex="71"
name="FU1_Hemiplegia_LR" value="2"
<?php if (show($patient, 'D_FU1::FU1_Hemiplegia_LR') == "2") { ?>
checked="checked" <?php } ?>>
</td>
<td width="16%" valign="top"><i> Ataxic
CP</i></td>
<td width="4%"><input id="SPcp11" type="radio" tabindex="75"
name="FU1_Ataxic_CP" value="1"
<?php if (show($patient, 'D_FU1::FU1_Ataxic_CP') == "1") { ?>
checked="checked" <?php } ?>></td>
<td width="26%">Ataxia</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="SPcp12" type="radio" tabindex="72"
name="FU1_Spastic_CP" value="5"
<?php if (show($patient, 'D_FU1::FU1_Spastic_CP') == "5") { ?>
checked="checked" <?php } ?> />
</td>
<td colspan="4" width="40%">Tetraplegia<br>
</td>
<td width="4%"><input id="SPcp13" type="radio" tabindex="76"
name="FU1_Ataxic_CP" value="2"
<?php if (show($patient, 'D_FU1::FU1_Ataxic_CP') == "2") { ?>
checked="checked" <?php } ?> />
</td>
<td width="26%">Hemiataxia</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="SPcp14" type="radio" tabindex="77"
name="FU1_Spastic_CP" value="6"
<?php if (show($patient, 'D_FU1::FU1_Spastic_CP') == "6") { ?>
checked="checked" <?php } ?>>
</td>
<td colspan="6" width="70%">unknown form of CP<br>
</td>
</tr>
<td width="10%" class="form_content2"></td>
<td width="90%" colspan="8">*Diplegia = bilateral predominant
tetraspasticity</td>
<tr>
<td width="10%" class="form_content2"></td>
<td width="90%" colspan="8"></td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="16%" valign="top" rowspan="6"><i>Degree of CP** (according to <a href="../pdf/GMFCS-ER_English.pdf" target="_blank">GMFCS Palisano scheme)</a>
</i></td>
<td width="4%"><input id="cpdegree0" type="radio" tabindex="80"
name="FU1_CP_Degree" value="0"
<?php if (show($patient, 'D_FU1::FU1_CP_Degree') == "0") { ?>
checked="checked" <?php } ?>>
</td>
<td width="70%" colspan="6">Normal (note that child therefore does not qualify for CP)</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="cpdegree1" type="radio" tabindex="81"
name="FU1_CP_Degree" value="1"
<?php if (show($patient, 'D_FU1::FU1_CP_Degree') == "1") { ?>
checked="checked" <?php } ?>>
</td>
<td width="70%" colspan="6">Level 1</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="cpdegree2" type="radio" tabindex="82"
name="FU1_CP_Degree" value="2"
<?php if (show($patient, 'D_FU1::FU1_CP_Degree') == "2") { ?>
checked="checked" <?php } ?>>
</td>
<td width="70%" colspan="6">Level 2</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="cpdegree3" type="radio" tabindex="83"
name="FU1_CP_Degree" value="3"
<?php if (show($patient, 'D_FU1::FU1_CP_Degree') == "3") { ?>
checked="checked" <?php } ?>>
</td>
<td width="70%" colspan="6">Level 3</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="cpdegree4" type="radio" tabindex="84"
name="FU1_CP_Degree" value="4"
<?php if (show($patient, 'D_FU1::FU1_CP_Degree') == "4") { ?>
checked="checked" <?php } ?>>
</td>
<td width="70%" colspan="6">Level 4</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="4%"><input id="cpdegree5" type="radio" tabindex="85"
name="FU1_CP_Degree" value="5"
<?php if (show($patient, 'D_FU1::FU1_CP_Degree') == "5") { ?>
checked="checked" <?php } ?>>
</td>
<td width="70%" colspan="6">Level 5</td>
</tr>
<tr>
<td width="10%" class="form_content2"></td>
<td width="90%" colspan="8">**(determine the LEVEL that most
closely describes the child's current GROSS MOTOR FUNCTION
according to GMFCS Palisano scheme)
</td>
</tr>
</table>
在 FU1_Spastic_CP 的不同值中保存了 Monoplegia、Diplegia 等等......这些可以随意放置在任何地方,因为它们没有被定义为一个 block 。
但是在 Symfony 中,我声明了那些不同的选择 Monoplegia,Diplegia ... 以及一个 formbuilder ,但我不知道如何修改它们中的每一个的位置。
$builder
->add('fu1SpasticCp', 'choice', array(
'choices'=> array(
'Monoplegia'=1,
'Diplegia'=2,
'Triplegia'=3,
'Hemiplegia'=4,
'Tetraplegia'=5,
'unknown form of CP'=6),
'choices_as_values'=> true,
'expanded' => true
))
谢谢你的建议!
最佳答案
我认为您正在寻找类似的东西: symfony3-how-to-separate-radio-buttons-from-a-choicetype
记住,它是一个数组。:)
关于php - 如何以 symfony2 形式为单选按钮获取 css 信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47018915/
我在 JavaScript 文件中运行 PHP,例如...... var = '';). 我需要使用 JavaScript 来扫描字符串中的 PHP 定界符(打开和关闭 PHP 的 )。 我已经知道使
我希望能够做这样的事情: php --determine-oldest-supported-php-version test.php 并得到这个输出: 7.2 也就是说,php 二进制检查 test.
我正在开发一个目前不使用任何框架的大型 php 站点。我的大问题是,随着时间的推移慢慢尝试将框架融入应用程序是否可取,例如在创建的新部件和更新的旧部件中? 比如所有的页面都是直接通过url服务的,有几
下面是我的源代码,我想在同一页面顶部的另一个 php 脚本中使用位于底部 php 脚本的变量 $r1。我需要一个简单的解决方案来解决这个问题。我想在代码中存在的更新查询中使用该变量。 $name)
我正在制作一个网站,根据不同的情况进行大量 PHP 重定向。就像这样...... header("Location: somesite.com/redirectedpage.php"); 为了安全起见
我有一个旧网站,我的 php 标签从 因为短标签已经显示出安全问题,并且在未来的版本中将不被支持。 关于php - 如何避免在 php 文件中写入
我有一个用 PHP 编写的配置文件,如下所示, 所以我想用PHP开发一个接口(interface),它可以编辑文件值,如$WEBPATH , $ACCOUNTPATH和 const值(value)观
我试图制作一个登录页面来学习基本的PHP,首先我希望我的独立PHP文件存储HTML文件的输入(带有表单),但是当我按下按钮时(触发POST到PHP脚本) )我一直收到令人不愉快的错误。 我已经搜索了S
我正在寻找一种让 PHP 以一种形式打印任意数组的方法,我可以将该数组作为赋值包含在我的(测试)代码中。 print_r 产生例如: Array ( [0] => qsr-part:1285 [1]
这个问题已经有答案了: 已关闭11 年前。 Possible Duplicate: What is the max key size for an array in PHP? 正如标题所说,我想知道
我正在寻找一种让 PHP 以一种形式打印任意数组的方法,我可以将该数组作为赋值包含在我的(测试)代码中。 print_r 产生例如: Array ( [0] => qsr-part:1285 [1]
关闭。这个问题需要多问focused 。目前不接受答案。 想要改进此问题吗?更新问题,使其仅关注一个问题 editing this post . 已关闭 9 年前。 Improve this ques
我在 MySQL 数据库中有一个表,其中存储餐厅在每个工作日和时段提供的菜单。 表结构如下: i_type i_name i_cost i_day i_start i_
我有两页。 test1.php 和 test2.php。 我想做的就是在 test1.php 上点击提交,并将 test2.php 显示在 div 中。这实际上工作正常,但我需要向 test2.php
我得到了这个代码。我想通过textarea更新mysql。我在textarea中回显我的MySQL,但我不知道如何更新它,我应该把所有东西都放进去吗,因为_GET模式没有给我任何东西,我也尝试_GET
首先,我是 php 的新手,所以我仍在努力学习。我在 Wordpress 上创建了一个表单,我想将值插入一个表(data_test 表,我已经管理了),然后从 data_test 表中获取所有列(id
我有以下函数可以清理用户或网址的输入: function SanitizeString($var) { $var=stripslashes($var); $va
我有一个 html 页面,它使用 php 文件查询数据库,然后让用户登录,否则拒绝访问。我遇到的问题是它只是重定向到 php 文件的 url,并且从不对发生的事情提供反馈。这是我第一次使用 html、
我有一个页面充满了指向 pdf 的链接,我想跟踪哪些链接被单击。我以为我可以做如下的事情,但遇到了问题: query($sql); if($result){
我正在使用 从外部文本文件加载 HTML/PHP 代码 $f = fopen($filename, "r"); while ($line = fgets($f, 4096)) { print $l
我是一名优秀的程序员,十分优秀!