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


PHP img_tag函数代码示例

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


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

示例1: mapaGoogle

 public static function mapaGoogle($x, $y, $zoom = 15, $alt = "", $w = 400, $h = 400)
 {
     $params["src"] = 'http://maps.google.com/maps/api/staticmap?center=' . $x . ',' . $y . '&zoom=' . $zoom . '&size=' . $w . 'x' . $h . '&sensor=false&markers=color:red|' . $x . ',' . $y . '';
     if ($alt != "") {
         $params["alt"] = str_replace(":", "###", $alt);
         $params["title"] = str_replace(":", "###", $alt);
     }
     if ($w != "") {
         $params["width"] = $w;
     }
     if ($h != "") {
         $params["height"] = $h;
     }
     $params["border"] = "0";
     return str_replace("###", ":", img_tag($params));
 }
开发者ID:raalveco,项目名称:Zeus,代码行数:16,代码来源:html.php

示例2: imagen

 public static function imagen($imagen, $alt = "", $w = 0, $h = 0)
 {
     $params = is_array($imagen) ? $imagen : Util::getParams(func_get_args());
     if ($alt != "") {
         $params["alt"] = str_replace(":", "###", $alt);
         $params["title"] = str_replace(":", "###", $alt);
     }
     if ($w != "") {
         $params["width"] = $w;
     }
     if ($h != "") {
         $params["height"] = $h;
     }
     $params["border"] = "0";
     return str_replace("###", ":", img_tag($params));
 }
开发者ID:raalveco,项目名称:Escuela,代码行数:16,代码来源:html.php

示例3: uploaded_file_tag

function uploaded_file_tag(moojon_base_model $model, $column_name, $mime_type_column = null)
{
    $value = $model->{$column_name};
    if ($value) {
        if (!$mime_type_column) {
            $mime_type_column = $column_name . '_' . moojon_config::get('mime_type_column');
        }
        $mime_type = $model->has_column($mime_type_column) ? $model->{$mime_type_column} : moojon_files::get_mime_content_type($value);
        $path = moojon_paths::get_public_column_upload_path($model, $column_name);
        if (substr($mime_type, 0, 5) == 'image') {
            $content = img_tag($path, $model);
        } else {
            $content = $path;
        }
        return a_tag($content, $path, array('target' => '_blank'));
    } else {
        return p_tag('Not set');
    }
}
开发者ID:steview,项目名称:moojon,代码行数:19,代码来源:model.tag.helper.php

示例4: img_tag

	
	<h3>The 3D Methodology : Definition, Development, Deployment</h3>
	<p>This is the life cycle of a typical large-scale Stormlab web application. We can adapt this methodology to suit any size engagement - from a year long deployment to a straightforward five page site.</p>
	<p><?php 
echo img_tag('method_chart.gif');
?>
</p>
	
	<div id="definition_blurb">
		<h4 id="definition"><span>Definition</span></h4>
		<div id="definition_body"><div>
			<h5 id="project_management">Project Management</h5>
			<p>Our methodology focuses on identifying the key decision points of the development effort, prototyping various options and engaging with the client to resolve key issues. Typically, we conduct status calls twice weekly to review progress against a project plan, resolve issues, and prioritize next steps. Every project is tracked via <a href="http://www.basecamphq.com/">Basecamp</a>. This allows clients to ask questions, monitor daily progress on a daily basis and interact with the team.</p>
			<h5 id="business_requirements_definition">Business Requirements Definition</h5>
			<p>Stormlab analysts document the details and full scope of the proposed solution from a marketing, design, branding and information architecture standpoint. If neccessary, time is spent interviewing both the client and potential users in an effort to construct &#8216;personas&#8217; that will help inform the development of every aspect of the web site.</p>
			<h5 id="optional_brand_identity_design">Optional Brand Identity Design</h5>
			<p>If required, the brand experts at Stormlab can assist in the creation of a corporate identity. We begin with an extensive round of initial designs imbued with the attributes of the brand that were identified during the definition of the business requirements. </p>
			<h5 id="technical_architecture">Technical Architecture</h5>
			<p>At this point we define the technical architecture for a project. Our proposed solutions include a complete staging area for development version that mirrors the setup of the ultimate, &#8216;live&#8217; site. We typically advocate the use of a third-party data center with leased servers. This is a highly flexible option that allows for rapid growth while still managing risk. An added benefit is the reduced need for in-house or contracted server admin experts.</p>
		</div></div>
	</div>
	
	<div id="development_blurb">
		<h4 id="development"><span>Development</span></h4>
		<div id="development_body"><div>
			<h5 id="database_design_and_construction">Database Design and Construction</h5>
			<p>All key data points will be mapped out and organized into logical groups. Data will be normalized to the degree that best suits a flexible storage, maintenance and reporting scenario. Data replication and backup scenarios will also be planned and discussed in this phase of development. An emphasis will be placed upon flexibility and long-term growth capability in terms of the actual schema.</p>
			<h5 id="application_design_and_construction">Application Design and Construction</h5>
			<p>The Stormlab team works together with the client to create a rough, working model of the site in HTML. By rapid protoyping we can greatly speed up the development process and focus on the user experience first and foremost. The end result, complete with written documentation, serves as a three dimensional blueprint for the project lifecycle.</p>
			<p>Next, Stormlab designers will create several versions of the Graphical User Interface (GUI). Upon approval of the general GUI, we create the individual page-level graphics. Utilizing our in-house marketing team we will create designs that use color, typography, iconography and photography to bring the brand to life.</p>
			<p>The approved site assets and style guides are passed to the programming team. Using the deliverables from the rough prototype, the production process moves swiftly. Stormlab takes care of the client side coding (XHTML/CSS) and the backend engineering bringing everything into a seamless whole on the staging server.</p>
开发者ID:stormlab,项目名称:Stormlab,代码行数:30,代码来源:method.php

示例5: img_tag

?>
</li>
			</ol>
		</fieldset>
		
		<fieldset>
			<legend>Item Images <a href="javascript:void(0);" id="add_image">Add Another Image <?php 
echo img_tag('add.png');
?>
</a></legend>
			<ol id="images_list">
				<?php 
$num = 1;
/*  Loop through the images.  */
foreach ($images->result() as $image) {
    echo '<li><label>File</label><input type="text" name="images[]" id="image_' . $num . '" value="' . $image->src . '" />' . img_tag('browse.gif', array('id' => 'browse_' . $num)) . '<br /><label>Title</label><input type="text" name="titles[]" id="title_' . $num . '" value="' . $image->title . '" /></li>';
    $num = $num + 1;
}
?>
			</ol>
		</fieldset>
		
		<fieldset>
			<legend>Item Types</legend>
			<?php 
foreach ($types->result() as $type) {
    $temp_types[] = intval($type->id);
}
?>
			<p><input type="checkbox" name="types[]" value="1"<?php 
echo in_array(1, $temp_types) ? ' checked="checked"' : '';
开发者ID:stormlab,项目名称:Stormlab,代码行数:31,代码来源:edit_form.php

示例6: validation_errors

}
echo validation_errors('<p class="ui-state-error ui-corner-all">', '</p>');
?>


    <div class="pagecontent-left">
        <h4>Your Logo</h4>
        <p>Your logo appears on every page, logo must be in GIF, JPEG or PNG format and cannot be more then 200 pixels wide.</p>
        <div id="showlogo" class="ui-corner-all">
            <?php 
// if company logo is in FB
if ($company_detail['logo'] != NULL || $company_detail['logo'] != '') {
    // @todo add file exists checking here
    ?>
                <div class="logo"> <?php 
    echo img_tag($company_detail['logo'], ' alt="' . $company_detail['company_name'] . '"', 'company');
    ?>
 </div>
                <p class="margin-bottom"><a href="javascript:void(0);" id="delaction" onclick="javascript:del_logo('<?php 
    echo $company_detail['cid'];
    ?>
');">Delete this logo</a></p>
            <?php 
}
?>
            <?php 
$upload_logo = array('name' => 'upload_logo', 'id' => 'upload_logo', 'class' => 'ui-corner-all');
echo form_open_multipart('company/logo_upload');
echo form_upload($upload_logo);
echo form_submit('submit', 'Upload Now', 'class="ui-corner-all block margin-top"');
echo form_close();
开发者ID:revathims,项目名称:pwoxi-trackr,代码行数:31,代码来源:branding.php

示例7: foreach

<div style="background-color:white; box-shadow: 0px 2px 2px #333333;">
<div id="content" align="center"><br><img src ="collection/tiles.png"><p><strong><?php 
    echo $g['name'];
    ?>
さんのシューズコレクション</strong></p></div>
<?php 
}
?>
<div align="center">
  	<?php 
foreach ($getcollection as $gc) {
    ?>
<tr>
<td>
  	<?php 
    echo img_tag($gc['collection_id']);
    ?>
  	</td>
  	<?php 
}
?>
  	</div>
  	<br>
  	</div>
  	  	<br><div align="center">
  	<a id="css_button2" href="#" onClick="history.back(); return false;">戻る</a>
  	<br><br>
  	</div>
  	<?php 
require 'pagetop_button.php';
?>
开发者ID:takumi0705,项目名称:shoeconnect,代码行数:31,代码来源:user_collection.php

示例8: preg_replace

        // 置換
        $comment = preg_replace($pattern, $replacement, $comment);
        ?>

<td><p style="color:#DC143C"><?php 
        echo "「" . $g['title'] . "」";
        ?>
</p>	</td>
<div id="contentimage">

<div align="center">


<td>
<?php 
        echo img_tag($g['comment_id']);
        ?>
</div>
</td>
<br>
    <td>
    <p>
     <?php 
        echo img_tag2($g['comment_id']);
        ?>
      <?php 
        echo img_tag3($g['comment_id']);
        ?>
       <?php 
        echo img_tag4($g['comment_id']);
        ?>
开发者ID:takumi0705,项目名称:shoeconnect,代码行数:31,代码来源:sample_category.php

示例9: img_tag

<h2 class="supplier-title"><?php 
echo $supplier['s_name'];
?>
</h2>

<div id="product-page" class="ten columns">

	<div id="supplier-info" class="">
		
		<div id="supplier-image" class="">
			<?php 
echo img_tag('img/uploads/suppliers/' . $supplier['s_image'], array("alt" => "supplier_img"));
?>
		</div>
		<div id="supplier-description" class="">
			<?php 
echo $supplier['s_description'];
?>
		</div>
	</div>
	
	
	<div style="clear:both;"></div>
	<div id="product-info" class="">

	</div>
</div>

开发者ID:nomoregrapes,项目名称:Fair-Food-Carlisle---Community-Edition,代码行数:27,代码来源:index.php

示例10: QrCode

<?php

include_once "../vendor/autoload.php";
// If you specify a full path (URL) in your filename, check if the folder is already exists
$filename = 'qr-code-name.png';
use Arcanedev\QrCode\QrCode;
$qrCode = new QrCode();
$qrCode->setText("I would love to change the world, but they won't give me the source code.");
$qrCode->setSize(200);
$qrCode->save($filename);
// This is a helper to echo out an image, you can use your own function/HTML tag
echo img_tag($filename, 'Your Alt Image | Optional', ['class' => 'your-css-class optional']);
开发者ID:scada-josh,项目名称:rmr,代码行数:12,代码来源:save-qrcode.php

示例11: img_tag

<?php

//thumbnail images were made at 50x50, but if its more recent it's 140x140. Work out which one to use...
if (element('p_image', $p) == null) {
    $preview_img = 'not-found';
} else {
    if (file_exists(FCPATH . 'img/uploads/products/small/' . $p['p_image']) && is_file(FCPATH . 'img/uploads/products/small/' . $p['p_image']) && filesize(FCPATH . 'img/uploads/products/small/' . $p['p_image']) > 10240) {
        $preview_img = 'img/uploads/products/small/' . $p['p_image'];
    } else {
        $preview_img = 'img/uploads/products/' . $p['p_image'];
    }
}
echo '<div class="item_preview" data-pid="' . $p['p_id'] . '" >' . '<div class="image">' . img_tag($preview_img) . '</div>' . '<h3><a href="' . site_url('products/' . $category['cat_slug']) . '/' . $p['p_slug'] . '">' . $p['p_name'] . '</a></h3>' . '<p class="supplier">' . @$p['s_name'] . '</p>' . '<p class="price">1' . @$p['pu_short_single'] . ', &pound;' . number_format($p['p_price'], 2) . '</p>' . '<p class="p_action"><a href="' . site_url('products/' . $category['cat_slug']) . '/' . $p['p_slug'] . '" class="btn">Buy</a></p>';
echo '</div>';
//echo '<li><a href="'. site_url() .'products/'. $cat['cat_slug'] .'">'.$cat['cat_name'].'</a></li>';
开发者ID:nomoregrapes,项目名称:Fair-Food-Carlisle---Community-Edition,代码行数:15,代码来源:partial_product_item.php

示例12: validation_errors

    <?php 
echo validation_errors('<p class="ui-state-error ui-corner-all">', '</p>');
?>

        
<div class="pagecontent-left">
        <h4>Profile Picture</h4>
    <p>Your profile appears on every page, picture must be in GIF, JPEG or PNG format and cannot be more then 100 pixels wide.</p>
    <div id="showlogo" class="ui-corner-all">
        <?php 
// if company logo is in FB
if ($user_detail['profile_pic'] != NULL || $user_detail['profile_pic'] != '') {
    // @todo add file exists checking here
    ?>
            <div class="logo"> <?php 
    echo img_tag($user_detail['profile_pic'], ' alt="' . $user_detail['first_name'] . '"', 'profile');
    ?>
 </div>
            <p class="margin-bottom"><a href="javascript:void(0);" id="delaction" onclick="javascript:del_ppic('<?php 
    echo $user_detail['uid'];
    ?>
');">Delete this picture</a></p>
        <?php 
}
?>
        <?php 
$upload_picture = array('name' => 'upload_picture', 'id' => 'upload_picture', 'class' => 'ui-corner-all');
echo form_open_multipart('users/picture_upload');
echo form_upload($upload_picture);
echo form_submit('submit', 'Upload Now', 'class="ui-corner-all block margin-top"');
echo form_close();
开发者ID:revathims,项目名称:pwoxi-trackr,代码行数:31,代码来源:profile.php

示例13: img_tag

        <div class="people-box ui-corner-all <?php 
    echo $class_div;
    ?>
">
        <div class="picture">
            <?php 
    // if profile picture is in DB
    if ($row['profile_pic'] != NULL || $row['profile_pic'] != '') {
        // @todo add file exists checking here
        ?>
            <?php 
        echo img_tag($row['profile_pic'], ' alt="' . $row['first_name'] . '"', 'profile');
        ?>
            <?php 
    } else {
        echo img_tag('default_small.png', ' alt="' . $row['first_name'] . '"', 'profile');
    }
    ?>
        </div>
        <div class="name"><?php 
    echo $row['first_name'] . ' ' . $row['last_name'];
    ?>
</div>
            </div>
<?php 
}
?>
    <div class="cleardiv"></div>


开发者ID:revathims,项目名称:pwoxi-trackr,代码行数:28,代码来源:people.php

示例14: img_tag

	<div class="image_column"><?php 
echo img_tag('tools_cms.jpg');
?>
</div>
	<p>On the web, content is everything. We have created a simple, custom Content Management System that allows you to edit text, insert pictures, format layouts, add pages and sections - wherever, whenever and however you want. Carbon generates web-standard, XHTML/CSS, search-engine friendly code so you don&#8217;t have to. You cannot break your web site using Carbon.</p>
	<p>Examples: <?php 
echo anchor('portfolio/sort/all/#pljv', 'PLJV');
?>
, <?php 
echo anchor('portfolio/sort/all/#desi-hits', 'Desi Hits');
?>
</p>
	
	<h3>Mercury Blog</h3>
	<div class="image_column"><?php 
echo img_tag('tools_blog.jpg');
?>
</div>
	<p>Stormlab can show you the power of blogging with our Mercury Blogging Engine or, if you prefer we can customize WordPress to suit your needs. We can help you integrate a blog as part of a unified, online marketing strategy that can significantly boost your search engine ranking through targeted search engine optimization.</p>
	<p>Examples: <?php 
echo anchor('portfolio/sort/all/#climate360', 'Climate360');
?>
</p>
	
	<h3>Silver Slideshow</h3>
	<div class="image_column"><div id="slideshow" style="border : 5px solid #999;width:372px;height:242px;"></div></div>
	<p>Silver Slideshow is a fast and easy way to put dynamic visual content anywhere on your site. A lot of our clients use it as the main feature on their homepage (we&#8217;ve used it on ours). Others have created slideshows of client logos.</p>
	<p>Silver slideshows use Flash to create dynamic transitions (fade, wipe or blur). They can be any size and you control the length of the slideshow. All the slides are JPGs and can be managed manually or via the Carbon CMS.</p>
	<p>Examples: <?php 
echo anchor('portfolio/sort/all/#st-davids', 'St. David&#8217;s');
?>
开发者ID:stormlab,项目名称:Stormlab,代码行数:31,代码来源:tools.php

示例15: img_tag

	
	<h3>Dave Wright <span>Principal/Creative Director</span></h3>
	<div class="image_column"><?php 
echo img_tag('photo_dave.jpg');
?>
</div>
	<p>Stormlab was founded by Dave Wright in 1999. During that time, Dave has worked with numerous startups and corporations helping them to find a visual voice through memorable branding and distinctive web sites. His information architecture expertise also enables him to help these companies produce highly intuitive and easily navigable web sites and web applications.</p>
	<p>Prior to Stormlab, Dave worked at a number of the top Los Angeles ad agencies and internet firms as a Senior Creative Director. His clients included: MTV, Infiniti, K-Swiss, Microsoft and Intel. His designs have been recognized by the Smithsonian and he is the recipient of the Golden Omni Award for his work with Stamford Hospital&#8217;s Healthy Pregnancy Initiative.</p>
	
	<h3>Bryan Fillmer <span>Design Technologist</span></h3>
	<div class="image_column"><?php 
echo img_tag('photo_bryan.jpg');
?>
</div>
	<p>Bryan Fillmer has been working with Web related technologies for over nine years. He is highly proficient in today&#8217;s leading programming languages, including Javascript, Ruby on Rails and PHP.</p>
	<p>Bryan leads all of the programming efforts at Stormlab, overseeing the development of our suite of tools and implementing web applications for clients such as Desi Hits, Campus Vortex, PLJV and Climate360.</p>
	
	<br clear="all" />
开发者ID:stormlab,项目名称:Stormlab,代码行数:17,代码来源:about.php


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