2013-08-22 44 views
0

我正在创建一个显示事件信息的提要。每个事件都有自己的模式。我正在尝试为每个事件的模态创建一个唯一的网址,但无法计算出链接。在页面加载时打开特定的基础显示模式

据我了解,我应该能够去网址:

mysite.com/feed.php?result=mymodal'eventid”

哪些应该自动打开在页面加载特定模式。正确?

我对这一切都很陌生,可能会缺少一些小的东西或者可能缺少整个元素。

?> 
     <div class="result"> 
     <div class="twelve columns"> 
      <h2><a href="#mymodal<?php echo $runrows['eventID']?>" data-reveal-id="myModal<?php echo $runrows['eventID']?>" class="event_title"><?php echo $runrows['title']; ?></a></h2> 
      <div class="event_date"><?php echo $runrows['date']; ?><p class="rsvp_count">RSVP Count: <?php echo $runrows['rsvp_count']; ?></p></div> 
     </div> 
     <div class="twelve columns"> 
      <p class="event_headline"><?php echo $runrows['headline']; ?> (Click on event name to read more..)</p> 
      <p class="event_location"><?php echo $runrows['location']; ?></p> 
      <p class="event_terminal"><?php echo $runrows['terminal']; ?></p> 
      <p class="rsvp_count"><?php echo $runrows['rsvp_count']; ?></p> 
      <div class="event_share"> 
      <form style='margin: 0; padding: 0'> 
       <?php/*input class="button" style='display:inline;' name='RSVP' type='submit' value='RSVP'/> 
       <input class="button" style='display:inline;' name='Share' type='submit' value='Share'/> 
       <input type="hidden" name="eventID" value="1"*/?> 
      </form> 
      <button onclick="<?php echo 'RSVPSubmit('.$runrows['eventID'].', 0);'; ?>">RSVP</button><button>Share</button> 
      </div> 
     </div> 
     <hr> 
     </div> 

     <div id="myModal<?php echo $runrows['eventID']?>" class="reveal-modal"> 

    <div class="result"> 
     <div class="twelve columns"> 
      <h2><a href="#mymodal<?php $runrows['eventID']?>" data-reveal-id="myModal<?php echo $runrows['eventID']?>" class="event_title"><?php echo $runrows['title']; ?></a></h2> 

      <div class="event_date"><?php echo $runrows['date']; ?></div> 
     </div> 
     <div class="twelve columns"> 
      <p class="event_headline"><?php echo $runrows['headline']; ?></p> 
      <p class="event_description"><?php echo $runrows['description']; ?></p> 

      <p class="event_location"><?php echo $runrows['location']; ?></p> 
      <p class="rsvp_count"><?php echo $runrows['rsvp_count']; ?></p> 

      <div class="event_share"> 
      <form style='margin: 0; padding: 0'> 
       <?php/*input class="button" style='display:inline;' name='RSVP' type='submit' value='RSVP'/> 
       <input class="button" style='display:inline;' name='Share' type='submit' value='Share'/> 
       <input type="hidden" name="eventID" value="1"*/?> 
      </form> 
      <button onclick="<?php echo 'RSVPSubmit('.$runrows['eventID'].', 0);'; ?>">RSVP</button><button>Share</button> 
      </div> 
     </div> 
     <hr> 
     </div> 


    <a class="close-reveal-modal">&#215;</a> 
</div> 

回答

0

请参考php in foundation modal(我刚才的回答)找出基金会如何揭示工作。

请检查你的代码,并确保实际揭示/模式是(不含<scripts>)的</body>之前的元素。

相关问题