Beispiel #1
0
 public static function partial($page, $vars = false)
 {
     vpartial($page, $vars);
 }
Beispiel #2
0
        </select>
      </div>

      <div class="form-slider"><label for="gender">Gender </label>
        <select id="gender" name="gender" required>
          <?php 
vecho('gender', '<option selected="selected">{var}</option>');
?>
          <option value="male">Male</option>
          <option value="female">Female</option>
          <option value="other">Other</option>
        </select>
      </div>

      <?php 
vpartial('s3single', array('s3name' => 'photo', 's3title' => 'Upload a profile picture *: ', 's3link' => vget('photo')));
?>

      <?php 
vnotice();
?>

      <p style="text-align:left;margin-bottom:0px">What are you looking for? Please select all that apply. <br> Your answers to the following will help us find better opportunities for you.</p>
      <label for="looking">Internship</label><input class="internship" onchange="lookingForValueChanged()" type="checkbox" id="internship" name="internship" value="<?php 
vecho('internship');
?>
" />
      <label for="looking">Full-Time</label><input class="fulltime" onchange="lookingForValueChanged()" type="checkbox" id="fulltime" name="fulltime" value="<?php 
vecho('fulltime');
?>
" />
Beispiel #3
0
  <?php 
vpartial('hubs/tabtemplates/meetup');
?>
  <?php 
vpartial('hubs/tabtemplates/members');
?>
</tabtemplates>

<?php 
vpartial('hubs/controllers/views');
vpartial('hubs/controllers/tabs');
?>

<?php 
vpartial('hubs/controllers/afterrender');
vpartial('hubs/controllers/comm');
?>

<script>
  // Actual code to set everything up for the first time

  // Config
  var myid = null,
      thishub = '<?php 
vecho('hub');
?>
',
      thishubname = '';

  Views.setup();
Beispiel #4
0
      });
    }

    google.maps.event.addDomListener(window, 'load', initialize);
  </script>
  <panel class="resultsmap">
    <div id="map-canvas"></div>
  </panel>
<?php 
}
?>

<panel class="results">
  <?php 
if (vget('showSearch')) {
    vpartial('subletsearchform', vget('data'));
}
?>

  <?php 
if (!is_null(vget('recent'))) {
    ?>
    <div class="content">
      <headline>Recent Listings</headline>
  <?php 
}
?>
      <div class="list">
        <?php 
if (isset($_GET['delay'])) {
    vecho('delay', '<div style="text-align: center;"><i>Results returned in {var} ms</div><br />');
Beispiel #5
0
" required /></div>      

      <div class="form-slider"><label for="corevalues" class="fortextarea">What are your company's core values?* (max. 1000 characters)</label><textarea id="corevalues" name="corevalues" required maxlength="1000"><?php 
vecho('corevalues');
?>
</textarea></div>

      <?php 
vpartial('s3single', array('s3name' => 'logophoto', 's3title' => 'What is your company logo?*', 's3link' => vget('logophoto')));
?>
      <?php 
vpartial('s3single', array('s3name' => 'bannerphoto', 's3title' => 'What would you like your banner image to be?*', 's3link' => vget('bannerphoto')));
?>

      <?php 
vpartial('s3multiple', array('s3name' => 'photos', 's3title' => 'Additional photos (upload at least 4 more):', 's3links' => vget('photos')));
?>

      <br>
      The following questions are not mandatory but are highly recommended. These questions help students get a better understanding of the unique culture at your company. Please answer <b>at least 6</b> of the following 13 questions.
      <br>

      <div class="form-slider"><label for="funfacts" class="fortextarea">What are the top 3 fun or quirky facts about your company? (max. 500 characters)</label><textarea id="funfacts" name="funfacts" maxlength="500"><?php 
vecho('funfacts');
?>
</textarea></div>

      <div class="form-slider"><label for="society" class="fortextarea">How does your company give back to society? (max. 500 characters)</label><textarea id="society" name="society" maxlength="500"><?php 
vecho('society');
?>
</textarea></div>
Beispiel #6
0
assets/gfx/salaryico.png');">
              <div class="cell">
                <subheadline>
                <?php 
if (vget('salarytype') != "other") {
    echo '$';
}
vecho('salary');
if (vget('salarytype') != "other") {
    echo ' / ';
    vecho('salarytype');
}
?>
                </subheadline>
                <small>Compensation</small>
              </div>
            </div>

          </td>
        </tr>
      </table>
    </div>

    <?php 
vpartial('fb', array('route' => 'jobs/job.php?id=' . vget('_id')));
?>
    <br /><br />

    <apply></apply>
  </div>
</panel>
Beispiel #7
0
      </div>

      <?php 
vpartial('roomtype');
?>

      <?php 
vpartial('buildingtype');
?>

      <?php 
vpartial('amenities');
?>

      <?php 
vpartial('s3multiple', array('s3name' => 'photos', 's3title' => 'Photos (recommended: >4 photos):', 's3links' => vget('photos')));
?>

      <?php 
if (vget('submitname') == 'edit') {
    ?>
        <div class="form-slider">
          <label for="fill">Publish:</label>
          <input type="hidden" id="fill" value="blah" />
          <left class="checkboxes">
            <input type="checkbox" name="publish" id="publish" value="true" <?php 
    vchecked('publish', 'true');
    ?>
 /> Make this listing public.
          </left>
        </div>
Beispiel #8
0
  <div id="map-canvas"></div>
</panel>

<div class="pop">
  <div class="poptable">
    <div class="popphoto"><img src="" /></div>
  </div>
</div>
<div class="popshare">
  <div class="poptable">
    <div class="popcell">
      <div class="popsharetext">
        Share your listing on social media such as Facebook groups to advertise your listing!
        <br />Copy and paste the link below into posts:
        <br /><br />
          <copy>www.sublite.net/housing/sublet.php?id=<?php 
vecho('_id');
?>
</copy>
        <br />
        or Like and Share below: <br /><br />
        <?php 
vpartial('fb', array('route' => 'housing/sublet.php?id=' . vget('_id')));
?>
        <br /><br /><br />
        <input type="button" id="soundsgood" value="Sounds good!" />
        <input type="button" id="hideshare" style="background: #999;" value="Don't show this again." />
      </div>
    </div>
  </div>
</div>
Beispiel #9
0
        <input type="text" name="title" />
        Start Date:
        <input class="datepicker" type="text" name="startdate" />
        Start Time:
        <input class="timepicker" type="text" name="starttime" />
        End Date:
        <input class="datepicker" type="text" name="enddate" />
        End Time:
        <input class="timepicker" type="text" name="endtime" />
        Location Name:
        <input type="text" name="locationname" />
        Location Address:
        <input type="text" name="address" />
        Description:
        <textarea name="description"></textarea>
        Upload a banner:
        <?php 
vpartial('s3single', array('s3name' => 'banner', 's3title' => 'What would you like your banner image to be?*'));
?>
        <div class="error"></div>
        <right><button>Create</button></right>
      </form>
    </content>
  </panel>
  <panel class="tabframe" name="members">
    <content>
      <subtabs><membercount>0</membercount> Members</subtabs>
      <div class="members"></div>
    </content>
  </panel>
</viewtemplate>
<style>
  body {
    background-color: #ffd800;
  }
  confirmation {
    text-transform: uppercase;
    padding: 20px;
    font-size: 1.5em;
    line-height: 1.2em;
    display: block;
  }
</style>

<panel>
  <div class="content">
    <confirmation>A confirmation email has been sent to <strong><?php 
vecho('email');
?>
</strong>. Check your inbox or spam. The email may take up to 24 hours to show up.</confirmation>

    <?php 
vpartial('studentrefer', array('email' => vget('email')));
?>
  </div>
</panel>
    <div class="form-slider"><label for="occupancy">How many people? </label><input type="number" min="0" id="occupancy" name="occupancy" value="<?php 
vecho('occupancy');
?>
" /></div>

    <?php 
vpartial('roomtype', array('any' => true));
?>

    <?php 
vpartial('buildingtype', array('any' => true));
?>

    <?php 
vpartial('amenities');
?>

    <div class="form-slider"><label for="sortby">Sort By: </label>
      <select id="sortby" name="sortby" required>
        <?php 
$sortby = array('priceIncreasing' => 'Cheapest', 'priceDecreasing' => 'Most Expensive', 'proximityIncreasing' => 'Closest');
if (isset($sortby[vget('sortby')])) {
    vecho('sortby', '<option selected="selected" value="{var}">' . $sortby[vget('sortby')] . '</option>');
}
foreach ($sortby as $val => $in) {
    echo "<option value=\"{$val}\">{$in}</option>";
}
?>
      </select>
    </div>