function display_msg($msg = '')
{
    $output = array();
    if (!empty($msg)) {
        foreach ($msg as $key => $value) {
            $output = "<div class=\"alert alert-{$key}\">";
            $output .= "<a href=\"#\" class=\"close\" data-dismiss=\"alert\">&times;</a>";
            $output .= remove_junk(first_character($value));
            $output .= "</div>";
        }
        return $output;
    } else {
        return "";
    }
}
Пример #2
0
    redirect('home.php', false);
} else {
    $user_p = find_by_id('users', $user_id);
}
include_once 'layouts/header.php';
?>
<div class="row">
   <div class="col-md-4">
       <div class="panel profile">
         <div class="jumbotron text-center bg-red">
            <img class="img-circle img-size-2" src="uploads/users/<?php 
echo $user_p['image'];
?>
" alt="">
           <h3><?php 
echo first_character($user_p['name']);
?>
</h3>
         </div>
        <?php 
if ($user_p['id'] === $user['id']) {
    ?>
         <ul class="nav nav-pills nav-stacked">
          <li><a href="edit_account.php"> <i class="glyphicon glyphicon-edit"></i> Edit profile</a></li>
         </ul>
       <?php 
}
?>
       </div>
   </div>
</div>
Пример #3
0
    ?>
</td>
                            <td class="text-center"><?php 
    echo (int) $sale['qty'];
    ?>
</td>
                            <td class="text-center"><?php 
    echo remove_junk($sale['total_saleing_price']);
    ?>
,-</td>
                            <td class="text-center"><?php 
    echo $sale['date'];
    ?>
</td>
                            <td class="text-center"><?php 
    echo first_character($sale['username']);
    ?>
</td>
                        </tr>
                    <?php 
}
?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<?php 
include_once 'layouts/footer.php';
Пример #4
0
                                <th class="text-center" style="width: 20%">KS-lager</th>
                                <th class="text-center" style="width: 20%">Montørlager</th>
                            </tr>
                            </thead>
                            <tbody>

                            <?php 
foreach ($storageStatus as $storage) {
    $storageID = $storage['id'];
    $ks_storage_value = $storage['ks_storage'];
    $hovedlager_value = $storage['quantity'];
    $m_storage_value = $storage['m_storage'];
    ?>
                                <tr class="text-center">
                                    <td><?php 
    echo first_character($storage['name']);
    ?>
</td>
                                    <td><input type='number' class='form-control' name='hovedlager[]' value="<?php 
    echo $hovedlager_value;
    ?>
" required></td>
                                    <td>
                                        <input type="number" class="form-control" name="ks-lager[]" value="<?php 
    echo $storage['ks_storage'];
    ?>
" required>
                                        <input type="number" name="id[]" value="<?php 
    echo $storageID;
    ?>
" hidden>
Пример #5
0
" alt="" />
                <?php 
    }
    ?>
                <?php 
    echo remove_junk(first_character($recent_product['name']));
    ?>
                  <span class="label label-warning pull-right">
                 <?php 
    echo (int) $recent_product['sale_price'];
    ?>
                  </span>
                </h4>
                <span class="list-group-item-text pull-right">
                <?php 
    echo remove_junk(first_character($recent_product['categorie']));
    ?>
              </span>
          </a>
      <?php 
}
?>
    </div>
  </div>
 </div>
</div>
 </div>
      </div>
    </div>
 </div>
</div>