Exemple #1
0
if (!empty($error)) {
    ?>
        <div class="col-lg-12" style="padding-bottom: 12px">
            <div class="bs-component">
  <div class="error"><?php 
    echo $error;
    ?>
</div>
            </div>
        </div>
  <?php 
} else {
    ?>
<div class="row">
          <div class="col-lg-12">
            <div class="bs-component">
              <div class="list-group">
              <?php 
    foreach ($result['result'] as $k => $v) {
        $link = $currentURL . '/jobs/detail?job_id=' . $v['job_id'];
        echo viewDisplay($link, $v['title'], $v['name'], $v['job_updated_dt']);
        ?>
    <?php 
    }
    ?>
              </div>
            </div>
          </div>
</div>
          <?php 
}
Exemple #2
0
  <div class="col-lg-12">
    <div class="bs-component">
      <div class="error"><?php 
    echo $errorMyMessage;
    ?>
</div>
    </div>
  </div>
</div>
<?php 
} else {
    ?>
<div class="row">
  <div class="col-lg-12">
    <div class="bs-component">
        <?php 
    foreach ($dataMyMessage['data'] as $detailMessage) {
        $link = HTTPPATH . '/messages/detail?message_id=' . $detailMessage['message_id'];
        $params = array();
        $params['class'] = '';
        if (empty($detailMessage['message_read'])) {
            $params['class'] = 'active';
        }
        echo viewDisplay($link, $detailMessage['subject'], 'From: ' . $detailMessage['name'], $detailMessage['message_date'], $params);
    }
    ?>
    </div>
  </div>
</div>
<?php 
}