Exemplo n.º 1
0
<div class="content">
	<!-- Staff Slider-->
	<div class="container">
		<a href="#" class="next-staff"></a>
		<a href="#" class="prev-staff"></a>

		<div class="staff-slider" data-snap-ignore="true">

			<?php 
$premiums = Lost::find()->where(['status_p' => 1])->all();
foreach ($premiums as $premium) {
    $user = User::findOne(['id' => $premium['user_id']]);
    $category = Cats::findOne(['id' => $premium['cat_id']]);
    $category1 = Cats::findOne(['id' => $premium['cat_1']]);
    $category2 = Cats::findOne(['id' => $premium['cat_2']]);
    $category3 = Cats::findOne(['id' => $premium['cat_3']]);
    ?>

				<div>
                                    
                                    <a href="#popup" class="lost follow" lost_id="<?php 
    echo $premium['id'];
    ?>
" elan_type="lost" >
                                        <span class="premium-span">
                                            <i id="premium-span-icon" class="fa fa-eye fa-4x" style="color:white;"></i>
                                        </span>
                                        <div class="staff-item">
						<?php 
    if ($premium['image']) {
        ?>
Exemplo n.º 2
0
 /**
  * Finds the Cats model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return Cats the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = Cats::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
Exemplo n.º 3
0
                <div class="decoration2"></div>

            <?php 
}
?>
        </div>

        <div class="one-third-responsive last-column">
            <?php 
$founds = Found::find()->where(['status_m' => 'active'])->limit(4)->offset(8)->all();
foreach ($founds as $found) {
    $user = User::findOne(['id' => $found['user_id']]);
    $category = Cats::findOne(['id' => $found['cat_id']]);
    $category1 = Cats::findOne(['id' => $found['cat_1']]);
    $category2 = Cats::findOne(['id' => $found['cat_2']]);
    $category3 = Cats::findOne(['id' => $found['cat_3']]);
    ?>
                <p class="user-list-follow">
                    <?php 
    if ($found['image']) {
        ?>
                        <img src="/admin/<?php 
        echo $found['image'];
        ?>
" alt="img">
                    <?php 
    } else {
        ?>
                        <img src="/newtemp/images/pictures/3s.jpg" alt="img">
                    <?php 
    }
Exemplo n.º 4
0
                <div class="decoration2"></div>

            <?php 
}
?>
        </div>

        <div class="one-third-responsive last-column">
            <?php 
$losts = Lost::find()->where(['status_m' => 'active'])->limit(4)->offset(8)->all();
foreach ($losts as $lost) {
    $user = User::findOne(['id' => $lost['user_id']]);
    $category = Cats::findOne(['id' => $lost['cat_id']]);
    $category1 = Cats::findOne(['id' => $lost['cat_1']]);
    $category2 = Cats::findOne(['id' => $lost['cat_2']]);
    $category3 = Cats::findOne(['id' => $lost['cat_3']]);
    ?>
                <p class="user-list-follow">
                    <?php 
    if ($lost['image']) {
        ?>
                        <img src="/admin/<?php 
        echo $lost['image'];
        ?>
" alt="img">
                    <?php 
    } else {
        ?>
                        <img src="/newtemp/images/pictures/3s.jpg" alt="img">
                    <?php 
    }