Php 在阅读更多内容之前,Html表格并不令人烦恼

Php 在阅读更多内容之前,Html表格并不令人烦恼,php,html,twig,Php,Html,Twig,我需要什么 我需要在阅读更多内容之前查看表格。 一,。“阅读更多”之前没有查看html表之前的快照 单击“阅读更多”后的快照。单击“阅读更多”可查看另一个表。 php代码 问题:在阅读更多内容之前,我没有查看html表。 我试过了 {% if comments_flag > 7 and reminder_flag==0 and key!=1 %}. 在这种条件下工作正常 但在其他条件下不工作。 像这样的?将函数添加到html的顶部,或者更好地添加到链接的js文件中,然后使用onc

我需要什么

我需要在阅读更多内容之前查看表格。 一,。“阅读更多”之前没有查看html表之前的快照

单击“阅读更多”后的快照。单击“阅读更多”可查看另一个表。 php代码

问题:在阅读更多内容之前,我没有查看html表。 我试过了

 {% if comments_flag > 7 and reminder_flag==0  and  key!=1 %}.
在这种条件下工作正常

但在其他条件下不工作。
像这样的?将函数添加到html的顶部,或者更好地添加到链接的js文件中,然后使用onclick调用它,而不是尝试在按钮onclick中编写代码

函数toshow{ $'feesmore'。切换; $'feesmore'。切换; } +阅读更多 收费更多表格
    [0] => Array
      (
        [type] => Member
        [metadata] => Array
            (
                [0] => Array
                    (
                        [amount] => 1350
                        [comment] => Early Bird RegistrationPricing Deadline14 August 2014 - See more at: http://congresses.pmi.org/NorthAmerica2014/Registration/#sthash.7X1yMZt6.dpuf
                    )

                [1] => Array
                    (
                        [amount] => 1650
                        [comment] => Early Bird RegistrationPricing Deadline14 August 2014 - See more at: http://congresses.pmi.org/NorthAmerica2014/Registration/#sthash.7X1yMZt6.dpuf
                    )

                [2] => Array
                    (
                        [amount] => 900
                        [comment] => Early Bird RegistrationPricing Deadline14 August 2014 - See more at: http://congresses.pmi.org/NorthAmerica2014/Registration/#sthash.7X1yMZt6.dpuf
                    )
        )

   [1] => Array
    (
        [type] => Non-Member
        [metadata] => Array
            (
                [0] => Array
                    (
                        [amount] => 1450
                        [comment] => On-site RegistrationPricing Begins15 August 2014
                    )

                [1] => Array
                    (
                        [amount] => 1750
                        [comment] => On-site RegistrationPricing Begins15 August 2014
                    )

                [2] => Array
                    (
                        [amount] => 1100
                        [comment] => On-site RegistrationPricing Begins15 August 2014
                    )
 {% if comments_flag > 7 and reminder_flag==0  and  key!=1 %}.