Skip to content

Instantly share code, notes, and snippets.

@whyisjake
Created September 24, 2012 16:50
Show Gist options
  • Save whyisjake/3776956 to your computer and use it in GitHub Desktop.
Save whyisjake/3776956 to your computer and use it in GitHub Desktop.
locations.csp
<csperl>
$mfl = $cgi->param('mfl');
$print = $cgi->param('p');
$mfl = int($mfl);
$print = int($print);
$day = $cgi->param('day');
</csperl>
<csif perl="$print == 1">
<csinclude record="cs_lay/63" field="pre" />
<cselse>
<csinclude record="cs_lay/97" field="pre" faire="ba12" />
<csauth limit="member/cs_com/3">
<a href="http://admin.makezine.com/cs/editor/editfile/csp/4027?x-r=efile" class="btn btn-primary">Edit this page</a>
</csauth>
<csauth limit="member/cs_com/8">
<a href="http://admin.makezine.com/cs/faire/editfile/csp/4027?x-r=efile" class="btn btn-primary">Edit this page</a>
</csauth>
</csif>
<h1>World Maker Faire New York 2012 <small>Schedule</small></h1>
<csif perl="$mfl>0">
<div class="well">
<h2><csinclude record="loc/{cs.cgi.mfl}" template="name.view"></h2>
<p><csinclude record="loc/{cs.cgi.mfl}" field="notes"></p>
</div>
</csif>
<csif perl="$print == 1">
<cselse>
<p class="pull-left"><a href="http://makerfaire.com/newyork/2012/schedule/index.html" class="btn btn-small" href="#"><i class="icon-calendar"></i> Full Schedule</a></p>
</csif>
<csif perl="$print != 1">
<p class="pull-right">
<a href="index.csp?mfl={cs.cgi.mfl}&p=1" target="printer" class="btn btn-small" href="#"><i class="icon-print"></i> Print Page</a>
</p>
</csif>
<div class="clear"></div>
<csif perl="$mfl == 'sat'">
<h3>Saturday, September 29<sup>th</sup>, 2012</h3>
<csquery path="q/437" where="date='2012-09-29' AND slot.id_loc = {cs.cgi.mfl}">
<cselse>
<csif perl="$mfl < 1">
<h3>Saturday, September 29<sup>th</sup>, 2012</h3>
<csquery path="q/437" where="date='2012-09-29'">
<cselse>
<h3>Saturday, September 29<sup>th</sup>, 2012</h3>
<csquery path="q/437" where="date='2012-09-29' AND slot.id_loc = {cs.cgi.mfl}">
</csif>
</csif>
<hr clear="all" />
<csif perl="$mfl == 'sun'">
<h3>Sunday, September 30<sup>th</sup>, 2012</h3>
<csquery path="q/437" where="date='2012-09-30' AND slot.id_loc = {cs.cgi.mfl}">
<cselse>
<csif perl="$mfl < 1">
<h3>Sunday, September 30<sup>th</sup>, 2012</h3>
<csquery path="q/437" where="date='2012-09-30'">
<cselse>
<h3>Sunday, September 30<sup>th</sup>, 2012</h3>
<csquery path="q/437" where="date='2012-09-30' AND slot.id_loc = {cs.cgi.mfl}">
</csif>
</csif>
<csif perl="$print == 1">
<csinclude record="cs_lay/63" field="post" />
<cselse>
<csinclude record="cs_lay/97" field="post" />
</csif>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment