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">×</a>
</div>