示例#1
0
echo vlinkto(vget('recruitername'), 'recruiter', array('id' => vget('recruiterid')));
if (vget('Loggedinstudent')) {
    ?>
                  | <a href="newmessage.php?from=<?php 
    vecho('L_id');
    ?>
&to=<?php 
    vecho('recruiterid');
    ?>
" onClick="return confirm('I have read, fully understand, and agree to Sublite’s Terms of Service and Privacy Policy. I agree to contact the recruiter in good-faith to inquire about the listing.')">Contact</a>
              <?php 
} else {
    if (!vget('Loggedin')) {
        ?>
                  | <?php 
        echo vlinkto('Create an account to message this recruiter!', 'register');
        ?>
              <?php 
    }
}
?>
            </div>
          </td>
          <td style="width: 30%;" style="vertical-align: middle;">

            <div class="icon" style="background-image: url('<?php 
echo $GLOBALS['dirpre'];
?>
assets/gfx/deadlineico.png');">
              <div class="cell">
                <subheadline><?php 
示例#2
0
<panel class="form">
  <div class="content">
    <headline><?php 
vecho('headline');
?>
 Job Listing</headline>
    <form method="post">
      <?php 
if (vget('_id') !== null) {
    $id = vget('_id');
    echo ' &nbsp; ' . vlinkto('<input type="button" value="View Job Listing" /><br /><br />', 'job', array('id' => $id), true);
}
?>
      <?php 
vnotice();
?>
      <div class="form-slider"><label for="title">Job Title:</label><input type="text" id="title" name="title" value="<?php 
vecho('title');
?>
" required /></div>
      <left>
        <input type="radio" name="jobtype" id="fulltime" value="fulltime" <?php 
vchecked('jobtype', 'fulltime');
?>
 required /><label for="fulltime"> Full-time position</label>
        <input type="radio" name="jobtype" id="parttime" value="parttime" <?php 
vchecked('jobtype', 'parttime');
?>
 required /><label for="parttime"> Part-time position</label>
        <input type="radio" name="jobtype" id="internship" value="internship" <?php 
vchecked('jobtype', 'internship');
示例#3
0
    <headline><?php 
vecho('headline');
?>
 Company Profile</headline>
    <?php 
if (vget('submitname') == 'add') {
    ?>
      <i>This form auto-saves, so you may return to finish the form later.</i>
    <?php 
}
?>
    <form method="post" id="company">
      <?php 
if (vget('_id') !== null) {
    $id = vget('_id');
    echo ' &nbsp; ' . vlinkto('<input type="button" value="View Company Profile" /><br /><br />', 'company', array('id' => $id));
}
?>
      <?php 
vnotice();
?>
      <div class="form-slider"><label for="name">Company Name*:</label><input type="text" id="name" name="name" value="<?php 
vecho('name');
?>
" disabled /></div>

      <div class="form-slider"><label>Industry*:</label></div>
      <?php 
vpartial('industryselect');
?>
示例#4
0
    margin: 0 auto;
  }
</style>
<panel>
  <div class="content">
    <headline>Personal Profile</headline>
    <div class="studentinfo">
      <div class="studentpic" style="background-image: url('<?php 
vecho('photo');
?>
');"></div>

      <subheadline><?php 
vecho('name');
?>
</subheadline>
      <?php 
vecho('school');
?>
 '<?php 
vecho('class');
?>

      <br /><br />
      <div><?php 
echo vlinkto('<input type="button" value="Edit Profile" />', 'editprofile');
?>
</div>
    </div>
  </div>
</panel>
示例#5
0
<panel class="form">
  <div class="content">
    <headline><?php 
vecho('headline');
?>
 Sublet Listing</headline>
    <form method="post">
      <?php 
if (vget('_id') !== null) {
    $id = vget('_id');
    echo ' &nbsp; ' . vlinkto('<input type="button" value="View Sublet Listing" /><br /><br />', 'sublet', array('id' => $id), true);
}
?>

      <?php 
vnotice();
?>
      
      <div class="form-slider"><label for="address">Address:</label><input type="text" id="address" name="address" value="<?php 
vecho('address');
?>
" required /></div>
      <div class="form-slider"><label for="city">City:</label><input type="text" id="city" name="city" value="<?php 
vecho('city');
?>
" required /></div>
      <div class="form-slider"><label for="state">State:</label><input type="text" id="state" name="state" value="<?php 
vecho('state');
?>
" required /></div>
示例#6
0
    <?php 
vpartial('fb', array('route' => 'jobs/job.php?id=' . vget('_id')));
?>
    <br /><br />
    <?php 
if (vget('Loggedinstudent') || vget('Loggedin')) {
    ?>
        <a href="../redirect.php?<?php 
    echo "id=";
    echo $_GET['id'];
    echo "&url=";
    vecho('link');
    ?>
" onClick="return confirm('You have clicked on an external link and are leaving the pages of SubLite.net. We are not responsible for the accuracy or effectiveness of any content outside of SubLite.net.')"><input type="button" value=<?php 
    if (filter_var(vget('link'), FILTER_VALIDATE_EMAIL)) {
        ?>
"Apply by Email"<?php 
    } else {
        ?>
"Apply Now"<?php 
    }
    ?>
 /></a>
    <?php 
} else {
    echo vlinkto('<input type="button" class="button" value="Login or register to apply for this opening!" />', 'login');
}
?>
  </div>
</panel>
示例#7
0
<style>
  subheadline {
    line-height: 2em;
    margin-top: 0.5em;
  }
</style>

<panel class="form">
  <div class="content">
    <headline>Edit Profile</headline>
    <form method="post">
      <?php 
echo ' &nbsp; ' . vlinkto('<input type="button" value="View Profile" /><br /><br />', 'recruiter', array('id' => vget('L_id')->{'$id'}));
?>

      <?php 
vnotice();
?>

      <div class="form-slider"><label for="firstname">First Name:</label><input type="text" id="firstname" name="firstname" value="<?php 
vecho('firstname');
?>
" required /></div>

      <div class="form-slider"><label for="lastname">Last Name:</label><input type="text" id="lastname" name="lastname" value="<?php 
vecho('lastname');
?>
" required /></div>

      <div class="form-slider"><label for="title">Job Title:</label><input type="text" id="title" name="title" value="<?php 
vecho('title');
示例#8
0
<panel>
  <div class="content">
    <?php 
$id = vget('_id');
$company = vget('company');
echo vlinkto('<input type="button" value="Edit Recruiter Profile" />', 'editprofile');
echo vlinkto('<input type="button" value="Edit Company Profile" />', 'editcompany');
?>
  </div>
</panel>
示例#9
0
}
?>
    <?php 
function jobBlock($job)
{
    $title = $job['title'];
    $company = $job['company'];
    $location = $job['location'];
    $desc = $job['desc'];
    $deadline = $job['deadline'];
    $logo = $job['logophoto'];
    return "\n          <table class=\"jobblock\"><tr>\n            <td class=\"img\" style=\"background-image: url('{$logo}');\"></td>\n            <td>\n              <div class=\"title\">{$title} | {$company}</div>\n              <div class=\"desc\">{$desc}</div>\n              <div class=\"info\">Deadline: {$deadline}</div>\n            </td>\n          </tr></table>\n        ";
}
$jobs = vget('jobs');
foreach ($jobs as $job) {
    echo vlinkto(jobBlock($job), 'job', array('id' => $job['_id']->{'$id'}));
}
if (count($jobs) == 0) {
    echo "No jobs matching your query. Stay posted! New jobs are being added regularly.";
}
?>
    <?php 
if (!is_null(vget('recent')) && vget('recent')) {
    ?>
      <a href="?showMore">Show More</a>
      <?php 
    if (vget('showMore')) {
        ?>
        <script>scrollTo('.jobblock', <?php 
        vecho('showMore');
        ?>
示例#10
0
function subletBlock($sublet)
{
    $title = $sublet['title'];
    $location = $sublet['address'];
    if ($sublet['city'] != '') {
        $location .= $sublet['city'];
    }
    if ($sublet['state'] != '') {
        $location .= $sublet['state'];
    }
    $summary = strmax($sublet['summary'], 300);
    $price = $sublet['price'];
    $pricetype = $sublet['pricetype'];
    $publish = $sublet['publish'];
    if ($publish) {
        $published = '<green>Public</green>';
    } else {
        $published = '<red>Private (Publish to have listing show up in search results)</red>';
    }
    return "\n          <div class=\"subletblock\">\n            <div class=\"title\">{$title} | {$location}</div>\n            <div class=\"summary\">{$summary}</div>\n            <div class=\"info\">Price: {$price} /{$pricetype} | {$published}</div>\n          </div>\n        ";
}
$sublets = vget('sublets');
foreach ($sublets as $sublet) {
    echo vlinkto(subletBlock($sublet), 'editsublet', array('id' => $sublet['_id']->{'$id'}));
}
if ($sublets->count() == 0) {
    echo "<b style=\"font-size: 1.5em;\">Congratulations! You have completed your profile and are on your way to finding tenants for the summer. Just take a moment to complete your sublet listing(s) by clicking the button below and you'll be all set!</b><br /><br />" . vlinkto('<input type="button" value="List Sublet" />', 'addsublet');
}
?>
  </div>
</panel>
示例#11
0
  <div class="content">
    <headline>Manage Job Listings</headline>
    <?php 
function jobBlock($job)
{
    $title = $job['title'];
    $location = $job['location'];
    $desc = strmax($job['desc'], 300);
    $deadline = $job['deadline'];
    if ($job['locationtype'] == 'home') {
        return "\n          <div class=\"jobblock\">\n            <div class=\"title\">{$title} | Work at home</div>\n            <div class=\"desc\">{$desc}</div>\n            <div class=\"info\">Deadline: {$deadline}</div>\n          </div>\n        ";
    }
    return "\n          <div class=\"jobblock\">\n            <div class=\"title\">{$title} | {$location}</div>\n            <div class=\"desc\">{$desc}</div>\n            <div class=\"info\">Deadline: {$deadline}</div>\n          </div>\n        ";
}
$jobs = vget('jobs');
$totalViewCount = 0;
$totalApplyCount = 0;
foreach ($jobs as $job) {
    $totalViewCount += $job['stats']['views'];
    $totalApplyCount += $job['stats']['clicks'];
}
echo '<div style="font-size: 16px;">You have a total of <b>' . $totalViewCount . "</b> views on your listings and <b>" . $totalApplyCount . '</b> clicks on the "Apply Now" button.</div>';
foreach ($jobs as $job) {
    echo vlinkto(jobBlock($job), 'editjob', array('id' => $job['_id']->{'$id'}));
}
if ($jobs->count() == 0) {
    echo "<b style=\"font-size: 1.5em;\">Congratulations! You have completed your company profile and are on your way to recruiting the most talented students. Just take a moment to complete your job listing(s) by clicking the button below and you'll be all set!</b><br /><br />" . vlinkto('<input type="button" value="List Job" />', 'addjob');
}
?>
  </div>
</panel>
示例#12
0
    if (!vget('signedup')) {
        ?>
              <form id="cityform" method="post">
                <div class="whitetext">Where are you this summer?</div>
                <div class="form-slider">
                  <label for="city">(eg. New York City, Boston, San Francisco)</label>
                  <input type="text" id="city" name="city" required />
                </div>
                <input type="submit" name="signup" value="Sign up now" />
              </form>
            <?php 
    }
    ?>
        <?php 
} else {
    echo vlinkto('<input type="button" class="button" value="Login or register to sign up for the social hubs!" />', $GLOBALS['dirpre'] . '../register');
}
?>
      </div>
    </div>
  </div>
  <div class="arrow-down"></div>
</panel>
<panel class="why">
  <div class="content">
    <headline style="color: #035d75;">Why Join the Social Hub?</headline>
    <form style="font-size: 1em; margin-top: -20px; margin-bottom: 20px;">
      Getting a good internship doesn't guarantee a good summer. Meet other students working in your city and have fun with them! Here are the main features:
    </form>
    <table class="whys"><tr>
      <td class="whycell"><incell>