本文整理汇总了PHP中CommonController::resize_image方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonController::resize_image方法的具体用法?PHP CommonController::resize_image怎么用?PHP CommonController::resize_image使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonController
的用法示例。
在下文中一共展示了CommonController::resize_image方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: information
</div>
</div>
<div class="col-md-3">
<legend>Basic information (optional)</legend>
<div class="form-group">
<label>Profile image</label>
<?php
if (!empty($data['image'])) {
?>
<div class="clear"></div>
<a class="fancybox" href="<?php
echo SITE_URL . (!empty($data['image']) ? $commonController->getUsersFolderPath($data['image']) : 'images/common/no-member-image.png');
?>
">
<img src="<?php
echo $commonController->resize_image($commonController->getUsersFolderPath($data['image']), 200);
?>
" alt="<?php
echo $data['username'];
?>
" />
</a>
<div class="clear"></div>
<?php
}
?>
<input placeholder="Select your picture" name="fileImage" id="fileImage" class="" type="file">
</div>
</div>
<div class="col-md-3">
<legend>Address Information (optional)</legend>
示例2:
<input type="hidden" class="hdnFacebookAPI" value="<?php
echo FACEBOOK_API_KEY;
?>
" />
<input type="hidden" class="hdnCurrency" value="<?php
echo $_SESSION['currency_symbol'];
?>
" />
<div class="header-wrapper">
<a href="<?php
echo SITE_URL;
?>
" class="logo" title="SnoozeOver">
<img src="<?php
echo $commonController->resize_image('images/common/logo-transparent.jpg', 300);
?>
" alt=" ">
</a>
<div class="right-top">
<div class="lang-row">
<div class="flag-right">
<!-- <img src="<?php
echo SITE_URL;
?>
images/common/price.png" alt=""> -->
<label><?php
echo $_SESSION['currency'];
?>
</label>
示例3: ucFirst
<h1><?php
echo ucFirst($incoming . $statusLabel);
?>
Booking Request</h1><br />
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-body">
<?php
if (mysql_num_rows($resultBookingInfo)) {
while ($row = mysql_fetch_array($resultBookingInfo)) {
?>
<div class="listing-item">
<div class="item-pic">
<img src="<?php
echo $commonController->resize_image(!empty($row['logo']) ? $commonController->getListingsFolderPath($row['logo']) : 'images/common/no-listing-image.png', 210);
?>
" alt="<?php
echo $row['name'];
?>
" alt="" />
</div>
<div class="listing-info">
<div class="listing-info-blank">
<?php
echo stripslashes($row['message']);
?>
<br />
Status : <?php
echo $status[$row['status']];
?>
示例4: ucwords
?>
' title="Back"><i class="fa fa-arrow-left"></i></a>
</div>
</div>
<div class='row'>
<div class="col-md-4">
<div class="panel panel-primary">
<div class="panel-heading">Profile Information</div>
<div class="panel-body">
<a class="fancybox" href="<?php
echo SITE_URL . (!empty($user['image']) ? $commonController->getUsersFolderPath($user['image']) : 'images/common/no-member-image.png');
?>
"
style="float:left; margin:0 10px 0 0;">
<img src="<?php
echo $commonController->resize_image(!empty($user['image']) ? $commonController->getUsersFolderPath($user['image']) : 'images/common/no-member-image.png', 120);
?>
" alt="<?php
echo $user['username'];
?>
" />
</a>
<div>
<strong>Name</strong>: <?php
echo $user['firstname'] != '' || $user['lastname'] != '' ? ucwords($user['firstname'] . ' ' . $user['lastname']) : 'Not Provided';
?>
<br />
<strong>Email</strong>: <?php
echo $user['email'];
?>
<br />
示例5: array
<div class="filter-select">
<select id="myDropdownListing" class="filter-feild filter-accommodation">
<option value="">Accommodation Type</option>
<?php
$dataAccommodationType = $commonController->getTableData(array('table' => 'accommodations', 'order' => 'name', 'where' => array('status=1', 'is_delete=0')));
if (!empty($dataAccommodationType)) {
while ($row = mysql_fetch_array($dataAccommodationType)) {
?>
<option <?php
echo !empty($_POST['accommodation']) && $_POST['accommodation'] == $row['id'] || !empty($_POST['filterAccommodation']) && $_POST['filterAccommodation'] == $row['id'] ? 'selected' : '';
?>
value="<?php
echo $row['id'];
?>
" data-imagesrc="<?php
echo $commonController->resize_image(!empty($row['logo']) ? $commonController->getAccomodationFolderPath($row['logo']) : 'images/common/no-accomodation-image.png', 16);
?>
" ><?php
echo $row['name'];
?>
</option> <?php
}
}
?>
</select>
<input type="hidden" name="filterAccommodation" id="hdnAccommodation" />
</div>
<div class="filter-price dropdown">
<div aria-expanded="false" data-toggle="dropdown" class="filter-lable small-label filter-slider">
Deal
示例6:
<div class="clearfix"></div>
<br />
<div class="form-group">
<label>Logo</label>
<?php
if (!empty($data['image'])) {
?>
<div class="clear"></div>
<a class="fancybox" href="<?php
echo SITE_URL . (!empty($data['image']) ? $commonController->getListingsFolderPath($data['image']) : 'images/common/no-member-image.png');
?>
">
<img src="<?php
echo $commonController->resize_image($commonController->getListingsFolderPath($data['image']), 200);
?>
" alt="<?php
echo $data['name'];
?>
" />
</a>
<div class="clear"></div>
<?php
}
?>
<input placeholder="Select your picture" name="fileImage" id="fileImage" class="" type="file">
</div>
<legend>Gallery</legend>
示例7: while
if (mysql_num_rows($resultSearch)) {
$index = 0;
while ($row = mysql_fetch_assoc($resultSearch)) {
$mapResult[$index] = $row;
$mapResult[$index]['encoded_id'] = base64_encode($row['id']);
$dataDeal['select'] = 'd.name as deal_name, d.value as discount ';
$dataDeal['table'] = 'deals d';
$dataDeal['where'] = array('d.id = ' . $row['deals'], 'd.status = 1');
$dataDeal['limit'] = '0,1';
$resultDeal = $commonController->getTableData($dataDeal);
if (mysql_num_rows($resultDeal)) {
$rowDeal = mysql_fetch_array($resultDeal);
$mapResult[$index]['discount'] = $rowDeal['discount'];
$mapResult[$index]['deal_name'] = $rowDeal['deal_name'];
}
$mapResult[$index]['logo'] = $commonController->resize_image(!empty($row['logo']) ? $commonController->getListingsFolderPath($row['logo']) : 'images/common/no-listing-image.png', 200);
$dataAccommodation['table'] = 'accommodations a LEFT JOIN establishments_accommodations ea ON ea.accommodation_id = a.id';
$dataAccommodation['where'] = array('ea.establishment_id = ' . $row['id']);
$dataAccommodation['order'] = 'a.name ASC';
$resultAccommodation = $commonController->getTableData($dataAccommodation);
if (mysql_num_rows($resultAccommodation)) {
while ($rowAccommodation = mysql_fetch_array($resultAccommodation)) {
$accommodationName[] = $rowAccommodation['name'];
}
if (!empty($accommodationName)) {
$mapResult[$index]['accommodation'] = implode(", ", $accommodationName);
}
}
$roomsResult = $commonController->getTableData(array('select' => 'MIN(rate) as min_rate', 'table' => 'establishment_rooms', 'where' => array('establishment_id=' . $row['id'], 'status=1'), 'groupBy' => 'establishment_id'));
if (mysql_num_rows($roomsResult)) {
$rowRooms = mysql_fetch_array($roomsResult);
示例8: array
<div class="form-group" style="overflow:auto">
<label>Accommodations Type</label>
<div class="clearfix"></div>
<?php
$dataAccommodationType = $commonController->getTableData(array('table' => 'accommodations', 'order' => 'name', 'where' => array('status=1', 'is_delete=0')));
if (!empty($dataAccommodationType)) {
while ($row = mysql_fetch_array($dataAccommodationType)) {
$checked = '';
if (!empty($existingAccommodationType) && in_array($row['id'], $existingAccommodationType)) {
$checked = 'selected';
}
?>
<span class="chk-section">
<img src="<?php
echo $commonController->resize_image(!empty($row['logo']) ? $commonController->getAccomodationFolderPath($row['logo']) : 'images/common/no-accomodation-image.png', 16);
?>
" border="0" />
<input style="float:left;margin-top: 6px;" type="checkbox" class="checkbox" id="accomodation<?php
echo $row['id'];
?>
" value="<?php
echo $index;
?>
" name="language_type[]" <?php
echo $checked;
?>
>
<label for="accomodation<?php
echo $row['id'];
?>
示例9: while
</tr>
</thead>
<tbody>
<?php
if (!empty($data)) {
$cnt = 1;
while ($row = mysql_fetch_array($data)) {
?>
<tr>
<td><?php
echo $cnt;
?>
</td>
<td>
<img src="<?php
echo $commonController->resize_image(!empty($row['logo']) ? $commonController->getAccomodationFolderPath($row['logo']) : 'images/common/no-accomodation-image.png', 32);
?>
" alt="<?php
echo $row['name'];
?>
" />
</td>
<td><?php
echo $row['name'];
?>
</td>
<td class="center">
<a class="btn btn-primary functionality-link" href="add_edit_accomodations.php?q=<?php
echo base64_encode($row['id']);
?>
" title="Edit Accommodation"><i class="fa fa-edit "></i></a>
示例10: AdminController
if (!empty($_POST['btnLogin'])) {
$adminController = new AdminController();
// assets/function.php
if ($adminController->checkValidUser($_POST['txtUsername'], $_POST['txtPassword'])) {
header('location: index.php');
} else {
$msg = 'Invalid credential';
$style = 'style="display:block"';
}
}
$commonController = new CommonController();
?>
<div class="wrapper">
<h1 class="admin-header">
<img src="<?php
echo $commonController->resize_image('/images/common/logo-transparent.png', 350);
?>
" alt="Snoozeover - Admin Panel" />
</h1>
<div class="clear"></div>
<div class="content">
<div id="form_wrapper" class="form_wrapper">
<form class="login active" id="login" method="post">
<h3>Login</h3>
<div><span class="error" <?php
echo $style;
?>
><?php
echo $msg;
?>
</span></div>
示例11:
?>
" class="share-ml"> </a></li>
</ul>
</div>
</div>
<div class="product-detail">
<div class="product-slider detail-tabs-content" id="photoGallery">
<?php
if (!empty($existingGallery) && count($existingGallery['path']) > 0) {
?>
<ul id="image-gallery" class="gallery list-unstyled cS-hidden">
<?php
for ($index = 0; $index < count($existingGallery['path']); $index++) {
?>
<li data-thumb="<?php
echo $commonController->resize_image($commonController->getListingsFolderPath($existingGallery['path'][$index]), 50);
?>
">
<img src="<?php
echo $commonController->resize_image($commonController->getListingsFolderPath($existingGallery['path'][$index]), 500);
?>
" />
</li>
<?php
}
?>
</ul>
<?php
}
?>
</div>
示例12:
</head>
<body>
<div id="wrapper">
<nav class="navbar navbar-default top-navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">
<img src="<?php
echo $commonController->resize_image('/images/common/logo-transparent.jpg', 200);
?>
" alt="Snoozeover" />
</a>
</div>
<ul class="nav navbar-top-links navbar-right">
<li class=""><a>Welcome back, admin!</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
<i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="<?php
echo ADMIN_SITE_URL;
?>