• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tidy_trim函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: HookResourceconnectCollectionsThumblistextra

function HookResourceconnectCollectionsThumblistextra()
{
    global $usercollection;
    $thumbs = sql_query("select * from resourceconnect_collection_resources where collection='{$usercollection}' order by date_added desc");
    foreach ($thumbs as $thumb) {
        ?>
		<!--Resource Panel--> 
		<div class="CollectionPanelShell"> 

		<table border="0" class="CollectionResourceAlign"><tr><td> 
		<a target="main" href="../plugins/resourceconnect/pages/view.php?url=<?php 
        echo urlencode($thumb["url"]);
        ?>
&k=<?php 
        echo getval("k", "");
        ?>
&col=<?php 
        echo $usercollection;
        ?>
"><img border=0 src="<?php 
        echo $thumb["thumb"];
        ?>
" class="CollectImageBorder" /></a></td> 
		</tr></table> 
				
		<div class="CollectionPanelInfo"><a target="main" href="../plugins/resourceconnect/pages/view.php?url=<?php 
        echo urlencode($thumb["url"]);
        ?>
&k=<?php 
        echo getval("k", "");
        ?>
&col=<?php 
        echo $usercollection;
        ?>
"><?php 
        echo tidy_trim(i18n_get_translated($thumb["title"]), 15);
        ?>
</a>&nbsp;</div> 
				
		<div class="CollectionPanelInfo"> 
		<a href="collections.php?resourceconnect_remove=<?php 
        echo $thumb["ref"];
        ?>
&nc=<?php 
        echo time();
        ?>
">x Remove</a></div>			
		</div>
		<?php 
    }
}
开发者ID:vongalpha,项目名称:resourcespace,代码行数:51,代码来源:collections.php


示例2: get_nopreview_icon

<img border=0 src="../gfx/<?php 
                    echo get_nopreview_icon($result[$n]["resource_type"], $result[$n]["file_extension"], true);
                    ?>
"/><?php 
                }
                ?>
</a></td>
            </tr></table>
            <div class="CollectionPanelInfo"><a href="<?php 
                echo $baseurl_short;
                ?>
pages/view.php?ref=<?php 
                echo $rref;
                ?>
" onClick="return CentralSpaceLoad(this,true);"><?php 
                echo tidy_trim(i18n_get_translated($title), 15);
                ?>
</a>&nbsp;</div>
				<?php 
                hook("relatedresourceaddlink");
                ?>
       
       </div>
        <?php 
            }
            ?>
    <div class="clearerleft"> </div>
        <a href="<?php 
            echo $baseurl_short;
            ?>
pages/search.php?search=<?php 
开发者ID:claytondaley,项目名称:resourcespace,代码行数:31,代码来源:view.php


示例3: highlightkeywords

<td><?php echo $lang["date"]?></td>
<td><?php echo $lang["news_headline"]?></td>
<td><?php echo $lang["news_body"]?></td>
<td><div class="ListTools"><?php echo $lang["tools"]?></div></td>
</tr>

<?php
for ($n=$offset;(($n<count($news)) && ($n<($offset+$per_page)));$n++)
	{
	?>
	<tr>
	<td><div class="ListTitle"><?php echo highlightkeywords($news[$n]["date"],$findtext,true);?></div></td>
	
	<td><div class="ListTitle"><?php echo "<a href=\"" . $baseurl . "/plugins/news/pages/news.php?ref=" . $news[$n]["ref"] . "\">" . highlightkeywords($news[$n]["title"],$findtext,true);?></a></div></td>
	
	<td><?php echo highlightkeywords(tidy_trim(htmlspecialchars($news[$n]["body"]),100),$findtext,true)?></td>
	
	<td>
	<div class="ListTools">
		<a href="news_content_edit.php?ref=<?php echo $news[$n]["ref"]?>&backurl=<?php echo urlencode($url . "&offset=" . $offset . "&findtext=" . $findtext)?>">&gt;&nbsp;<?php echo $lang["action-edit"]?> </a>
		<a href="#" onclick="if (confirm('<?php echo $lang["confirm-deletion"]?>')) {document.getElementById('newsdelete').value='<?php echo $news[$n]["ref"]?>';document.getElementById('newsform').submit();} return false;">&gt;&nbsp;<?php echo $lang["action-delete"]?></a>
		</div>
	</td>
	</tr>
	<?php
	}
?>

</table>
</div>
<div class="BottomInpageNav"><?php pager(true); ?></div>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:news_edit.php


示例4: get_nopreview_icon

            echo $baseurl;
            ?>
/gfx/<?php 
            echo get_nopreview_icon($result["resource_type"], $result["file_extension"], false, false, true);
            ?>
" 
		/><?php 
        }
        ?>
</a>
		</td>
		</tr>
	
		</table>	
		<div class="ResourcePanelInfo"><?php 
        echo tidy_trim($title, 25);
        ?>
&nbsp;</div>

		<div class="ResourcePanelIcons">		
		<span class="IconCollect"><a target="collections" href="<?php 
        echo $add_url;
        ?>
" onClick="return CollectionDivLoad(this,true);"><img src="../gfx/interface/sp.gif" alt="" width="22" height="12" /></a></span>
		</div>
		<div class="clearer"></div>
		
		</div>
		</div>
		
		<?php 
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:remote_results.php


示例5: if

		if (isset($metadata_template_title_field) && isset($metadata_template_resource_type))
			{
			if ($result[$n]['resource_type']==$metadata_template_resource_type)
				{
				$title=$result[$n]["field".$metadata_template_title_field];
				$title_field=$metadata_template_title_field;
				}	
			}	
		$field_type=sql_value("select type value from resource_type_field where ref=$title_field","");
		if($field_type==8){
			$title=strip_tags($title);
			$title=str_replace("&nbsp;"," ",$title);
		}
		?>	
		<?php if (!hook("replacecolresourcetitle")){?>
		<div class="CollectionPanelInfo"><a onclick="return <?php echo ($resource_view_modal?"Modal":"CentralSpace") ?>Load(this,true);" href="<?php echo $baseurl_short?>pages/view.php?ref=<?php echo urlencode($ref) ?>&search=<?php echo urlencode("!collection" . $usercollection)?>&k=<?php echo urlencode($k) ?>" <?php if (!$infobox) { ?>title="<?php echo htmlspecialchars(i18n_get_translated($result[$n]["field".$view_title_field]))?>"<?php } ?> ><?php echo htmlspecialchars(tidy_trim(i18n_get_translated($title),14));?></a>&nbsp;</div>
		<?php } ?>
		
		<?php if ($k!="" && $feedback) { # Allow feedback for external access key users
		?>
		<div class="CollectionPanelInfo">
		<span class="IconComment <?php if ($result[$n]["commentset"]>0) { ?>IconCommentAnim<?php } ?>"><a onclick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/collection_comment.php?ref=<?php echo urlencode($ref) ?>&collection=<?php echo urlencode($usercollection) ?>&k=<?php echo urlencode($k) ?>"><img src="<?php echo $baseurl_short?>gfx/interface/sp.gif" alt="" width="14" height="12" /></a></span>		
		</div>
		<?php } ?>
	
		<?php if ($k=="") { ?><div class="CollectionPanelInfo">
		<?php if (($feedback) || (($collection_reorder_caption || $collection_commenting))) { ?>
		<span class="IconComment <?php if ($result[$n]["commentset"]>0) { ?>IconCommentAnim<?php } ?>"><a onclick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/collection_comment.php?ref=<?php echo urlencode($ref) ?>&collection=<?php echo urlencode($usercollection) ?>"><img src="<?php echo $baseurl_short?>gfx/interface/sp.gif" alt="" width="14" height="12" /></a></span>		
		<?php } ?>

		<?php if (!isset($cinfo['savedsearch'])||(isset($cinfo['savedsearch'])&&$cinfo['savedsearch']==null)){ // add 'remove' link only if this is not a smart collection 
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:collections.php


示例6: tidy_trim

</div></td>
</tr>

<?php 
for ($n = $offset; $n < count($keywords) && $n < $offset + $per_page; $n++) {
    ?>
	<tr>
	<td><div class="ListTitle"><a href="team_related_keywords_edit.php?keyword=<?php 
    echo $keywords[$n]["keyword"];
    ?>
"><?php 
    echo $keywords[$n]["keyword"];
    ?>
</div></td>
	<td><?php 
    echo tidy_trim(htmlspecialchars($keywords[$n]["related"]), 45);
    ?>
</td>
	<td><div class="ListTools"><a href="team_related_keywords_edit.php?keyword=<?php 
    echo $keywords[$n]["keyword"];
    ?>
">&gt;&nbsp;<?php 
    echo $lang["action-edit"];
    ?>
 </a></div></td>
	</tr>
	<?php 
}
?>

</table>
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:team_related_keywords.php


示例7: get_nopreview_icon

<img border=0 src="../gfx/<?php 
                    echo get_nopreview_icon($result[$n]["resource_type"], $result[$n]["file_extension"], true);
                    ?>
"/><?php 
                }
                ?>
</a></td>
            </tr></table>
            <div class="CollectionPanelInfo"><a href="<?php 
                echo $baseurl_short;
                ?>
pages/view.php?ref=<?php 
                echo $rref;
                ?>
" onClick="return CentralSpaceLoad(this,true);"><?php 
                echo tidy_trim(i18n_get_translated($title), $related_resources_title_trim);
                ?>
</a>&nbsp;</div>
				<?php 
                hook("relatedresourceaddlink");
                ?>
       
       </div>
        <?php 
            }
            ?>
    <div class="clearerleft"> </div>
        <a href="<?php 
            echo $baseurl_short;
            ?>
pages/search.php?search=<?php 
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:view.php


示例8: CentralSpaceLoad

                echo $url;
                ?>
"  onClick="return CentralSpaceLoad(this,true);" <?php 
                if (!$infobox) {
                    ?>
title="<?php 
                    echo str_replace(array("\"", "'"), "", htmlspecialchars(i18n_get_translated($value)));
                    ?>
"<?php 
                }
                //end if infobox
                ?>
><?php 
            }
            //end link
            echo highlightkeywords(tidy_trim(TidyList(i18n_get_translated($value)), 28), $search, $df[$x]['partial_index'], $df[$x]['name'], $df[$x]['indexed']);
            if ($x == 0) {
                // add link if necessary
                ?>
</a><?php 
            }
            //end link
            ?>
&nbsp;</div><div class="clearer"></div>
			<?php 
        }
    }
    ?>
			<?php 
}
?>
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:smallthumbs.php


示例9: urlencode

                    echo $baseurl_short;
                    ?>
pages/view.php?ref=<?php 
                    echo urlencode($ref);
                    ?>
&search=<?php 
                    echo urlencode("!collection" . $usercollection);
                    ?>
&k=<?php 
                    echo urlencode($k);
                    ?>
" title="<?php 
                    echo htmlspecialchars(i18n_get_translated($result[$n]["field" . $view_title_field]));
                    ?>
"><?php 
                    echo htmlspecialchars(tidy_trim(i18n_get_translated($title), 14));
                    ?>
</a>&nbsp;</div>
		<?php 
                }
                ?>
		
		<?php 
                if ($k != "" && $feedback) {
                    # Allow feedback for external access key users
                    ?>
		<div class="CollectionPanelInfo">
		<span class="IconComment <?php 
                    if ($result[$n]["commentset"] > 0) {
                        ?>
IconCommentAnim<?php 
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:collections.php


示例10: CentralSpaceLoad

    echo $text[$n]["name"];
    ?>
&findpage=<?php 
    echo $findpage;
    ?>
&findname=<?php 
    echo $findname;
    ?>
&findtext=<?php 
    echo $findtext;
    ?>
&offset=<?php 
    echo $offset;
    ?>
" onClick="return CentralSpaceLoad(this,true);"><?php 
    echo highlightkeywords(tidy_trim(htmlspecialchars($text[$n]["text"]), 100), $findtext, true);
    ?>
</a></td>
	
	<td><div class="ListTools"><a href="<?php 
    echo $baseurl_short;
    ?>
pages/team/team_content_edit.php?page=<?php 
    echo $text[$n]["page"];
    ?>
&name=<?php 
    echo $text[$n]["name"];
    ?>
&findpage=<?php 
    echo $findpage;
    ?>
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:team_content.php


示例11: format_display_field

function format_display_field($value){
	
	// applies trim/wordwrap/highlights 
	
	global $results_title_trim,$results_title_wordwrap,$df,$x,$search;
	$string=i18n_get_translated($value);
	$string=TidyList($string);
	$string=tidy_trim($string,$results_title_trim);
	$wordbreaktag="<wbr>"; // $wordbreaktag="&#8203;" I'm having slightly better luck with <wbr>, but this pends more testing.
	// Opera doesn't renders the zero-width space with a small box.
	$extra_word_separators=array("_"); // only underscore is necessary (regex considers underscores not to separate words, 
	// but we want them to); I've based these transformations on an array just in case more characters act this way.
	
	$ews_replace=array();
	foreach($extra_word_separators as $extra_word_separator){
		$ews_replace[]="{".$extra_word_separator." }";
	}

	//print_r($config_separators_replace);
	$string=str_replace($extra_word_separators,$ews_replace,$string);
	$string=wordwrap($string,$results_title_wordwrap,"#zwspace",false);
	$string=str_replace($ews_replace,$extra_word_separators,$string);
	$string=htmlspecialchars($string);
	$string=highlightkeywords($string,$search,$df[$x]['partial_index'],$df[$x]['name'],$df[$x]['indexed']);
	
	$ews_replace2=array();
	foreach($extra_word_separators as $extra_word_separator){
		$ews_replace2[]="{".$extra_word_separator."#zwspace}";
	}
	$ews_replace3=array();
	foreach($extra_word_separators as $extra_word_separator){
		$ews_replace3[]=$wordbreaktag.$extra_word_separator;
	}
	
	$string=str_replace($ews_replace2,$ews_replace3,$string);
	$string=str_replace("#zwspace",$wordbreaktag." ",$string);
	return $string;
}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:38,代码来源:general.php


示例12: hook

	<?php 
        }
        if ($display == "list") {
            ?>
		<tr <?php 
            hook("collectionlistrowstyle");
            ?>
>
		<?php 
            hook("listsearchpubliccheckboxes");
            ?>
<td nowrap><div class="ListTitle"><a href="<?php 
            echo $pub_url;
            ?>
"><?php 
            echo $lang["collection"] . ": " . highlightkeywords(tidy_trim(i18n_get_translated($collections[$n]["name"]), 45), $search);
            ?>
</a></div></td>
		<?php 
            for ($x = 0; $x < count($df) - 1; $x++) {
                ?>
<td>-</td><?php 
            }
            ?>
		<td>-</td>
	    <?php 
            if ($display_user_rating_stars && $k == "") {
                ?>
<td>&nbsp;&nbsp;</td><?php 
            }
            ?>
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:search_public.php


示例13: if

			?>		
			<?php 
			// extended css behavior 
			if ( in_array($df[$x]['ref'],$thumbs_display_extended_fields) &&
			( (isset($metadata_template_title_field) && $df[$x]['ref']!=$metadata_template_title_field) || !isset($metadata_template_title_field) ) ){ ?>
			<?php if (!hook("replaceresourcepanelinfo")){?>
			<div class="ResourcePanelInfo"><div class="extended">
			<?php if ($x==0){ // add link if necessary ?><a href="<?php echo $url?>"  onClick="return CentralSpaceLoad(this,true);" <?php if (!$infobox) { ?>title="<?php echo str_replace(array("\"","'"),"",htmlspecialchars(i18n_get_translated($value)))?>"<?php } //end if infobox ?>><?php } //end link
			echo format_display_field($value);
			?><?php if ($show_extension_in_search) { ?><?php echo " " . str_replace_formatted_placeholder("%extension", $result[$n]["file_extension"], $lang["fileextension-inside-brackets"])?><?php } ?><?php if ($x==0){ // add link if necessary ?></a><?php } //end link?>&nbsp;</div></div>
			<?php } /* end hook replaceresourcepanelinfo */?>
			<?php 

			// normal behavior
			} else if  ( (isset($metadata_template_title_field)&&$df[$x]['ref']!=$metadata_template_title_field) || !isset($metadata_template_title_field) ) {?> 
			<div class="ResourcePanelInfo"><?php if ($x==0){ // add link if necessary ?><a href="<?php echo $url?>"  onClick="return CentralSpaceLoad(this,true);" <?php if (!$infobox) { ?>title="<?php echo str_replace(array("\"","'"),"",htmlspecialchars(i18n_get_translated($value)))?>"<?php } //end if infobox ?>><?php } //end link?><?php echo highlightkeywords(tidy_trim(TidyList(i18n_get_translated($value)),$search_results_title_trim),$search,$df[$x]['partial_index'],$df[$x]['name'],$df[$x]['indexed'])?><?php if ($x==0){ // add link if necessary ?></a><?php } //end link?>&nbsp;</div><div class="clearer"></div>
			<?php } ?>
			<?php
			}
		?>

		<!-- Checkboxes -->
		<div class="ResourcePanelIcons">
		<?php if(!hook("thumbscheckboxes")){?>
		<?php if ($use_checkboxes_for_selection){?><input type="checkbox" id="check<?php echo htmlspecialchars($ref)?>" class="checkselect" <?php if (in_array($ref,$collectionresources)){ ?>checked<?php } ?> onclick="if (jQuery('#check<?php echo htmlspecialchars($ref)?>').attr('checked')=='checked'){ AddResourceToCollection(<?php echo htmlspecialchars($ref)?>); } else if (jQuery('#check<?php echo htmlspecialchars($ref)?>').attr('checked')!='checked'){ RemoveResourceFromCollection(<?php echo htmlspecialchars($ref)?>); }">&nbsp;<?php } ?>
		<?php } # end hook thumbscheckboxes?>
		<?php if ($display_resource_id_in_thumbnail && $ref>0) { echo htmlspecialchars($ref); } else { ?>&nbsp;<?php } ?>
		</div>	

		<?php if (!hook("replaceresourcetools")){?>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:30,代码来源:thumbs.php


示例14: i18n_get_collection_name

                $collection_tag = $lang['collection'];
            } else {
                $collection_prefix = "";
                # The prefix $lang['smartcollection'] . ": " is added in i18n_get_collection_name()
                $collection_tag = $lang['smartcollection'];
            }
            if (!hook("replacelistviewcolresults")) {
                ?>
		<td nowrap><div class="ListTitle"><a onClick="return CentralSpaceLoad(this,true);" href="<?php 
                echo $pub_url;
                ?>
" title="<?php 
                echo str_replace(array("\"", "'"), "", $collection_prefix . i18n_get_collection_name($collections[$n]));
                ?>
"><?php 
                echo $collection_prefix . highlightkeywords(tidy_trim(i18n_get_collection_name($collections[$n]), 45), $search);
                ?>
</a></div></td>
		<?php 
                for ($x = 0; $x < count($df) - 1; $x++) {
                    ?>
<td>-</td><?php 
                }
                ?>
		<td>-</td>
	    <?php 
                if ($display_user_rating_stars && $k == "") {
                    ?>
<td>&nbsp;&nbsp;</td><?php 
                }
                ?>
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:search_public.php


示例15: hook

		{
		?>
		<tr <?php hook("collectionlistrowstyle");?>>
		<?php hook ("listsearchpubliccheckboxes");
		if ($use_checkboxes_for_selection){echo "<td></td>";}
		if (!isset($collections[$n]['savedsearch'])||(isset($collections[$n]['savedsearch'])&&$collections[$n]['savedsearch']==null))
			{
			$collection_prefix = $lang["collection"] . ": ";
			$collection_tag = $lang['collection'];
			}
		else
			{
			$collection_prefix = ""; # The prefix $lang['smartcollection'] . ": " is added in i18n_get_collection_name()
			$collection_tag = $lang['smartcollection'];
			}?>
		<td nowrap><div class="ListTitle"><a onClick="return CentralSpaceLoad(this,true);" href="<?php echo $pub_url?>" title="<?php echo str_replace(array("\"","'"),"", $collection_prefix . i18n_get_collection_name($collections[$n]))?>"><?php echo $collection_prefix . highlightkeywords(tidy_trim(i18n_get_collection_name($collections[$n]),45),$search)?></a></div></td>
		<?php 
		for ($x=0;$x<count($df)-1;$x++){
			?><td>-</td><?php
			}
				
		?>
		<td>-</td>
	    <?php if ($display_user_rating_stars && $k==""){ ?><td>&nbsp;&nbsp;</td><?php } ?>
		<?php if ($id_column){?><td><?php echo $collections[$n]['ref']?></td><?php } ?>
		<?php if ($resource_type_column){?><td><?php echo $collection_tag?></td><?php } ?>
		<?php if ($date_column){?><td><?php echo nicedate($collections[$n]["created"],false,true)?></td><?php } ?>
        <?php hook("addlistviewcolumnpublic");?>
		<td><div class="ListTools">
		<?php if (!hook("replacecollectiontools")){?>
		<a href="<?php echo $baseurl_short?>pages/collections.php?collection=<?php echo $collections[$n]["ref"]?>"  onClick="return CollectionDivLoad(this);">&gt;&nbsp;<?php echo $lang["action-select"]?></a>&nbsp;&nbsp;<a onClick="return CentralSpaceLoad(this,true);" href="<?php echo $pub_url?>">&gt;&nbsp;<?php echo $lang["viewall"]?></a>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:search_public.php


示例16: urlencode

						if (isset($metadata_template_title_field) && isset($metadata_template_resource_type))
							{
							if ($result[$n]['resource_type']==$metadata_template_resource_type)
								{
								$title=$result[$n]["field".$metadata_template_title_field];
								}	
							}	
								
						?>
						
						<!--Resource Panel-->
						<div class="ResourcePanelShellSmall">
						<table border="0" class="ResourceAlignSmall"><tr><td>
						<a href="<?php echo $baseurl_short?>pages/view.php?ref=<?php echo $rref?>&search=<?php echo urlencode("!related" . $ref)?>" onClick="return CentralSpaceLoad(this,true);"><?php if ($result[$n]["has_image"]==1) { ?><img border=0 src="<?php echo get_resource_path($rref,false,"col",false,$result[$n]["preview_extension"],-1,1,checkperm("w"),$result[$n]["file_modified"])?>" class="CollectImageBorder"/><?php } else { ?><img border=0 src="../gfx/<?php echo get_nopreview_icon($result[$n]["resource_type"],$result[$n]["file_extension"],true)?>"/><?php } ?></a></td>
						</tr></table>
						<div class="ResourcePanelInfo"><a href="<?php echo $baseurl_short?>pages/view.php?ref=<?php echo $rref?>" onClick="return CentralSpaceLoad(this,true);"><?php echo tidy_trim(i18n_get_translated($title),15)?></a>&nbsp;</div>
						<div class="ResourcePanelIcons"><input type="checkbox" id="share<?php echo $rref ?>" class="checkselect" onChange="UpdateRelatedField(this,<?php echo $rref ?>);"></div>
						
						</div>
						<?php		
						}
					}
					?>
					</div><!-- end of sharerelatedtype -->
					<div class="clearerleft"> </div>
					<?php
				} //end of display loop by resource extension
		
		?>
		</div>
		<div class="clearerleft"> </div>
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:resource_email.php


示例17: HookResourceconnectCollectionsThumblistextra

function HookResourceconnectCollectionsThumblistextra()
{
    global $usercollection, $lang, $baseurl;
    $thumbs = sql_query("select * from resourceconnect_collection_resources where collection='{$usercollection}' order by date_added desc");
    foreach ($thumbs as $thumb) {
        ?>
		<!--Resource Panel--> 
		<div class="CollectionPanelShell"> 

		<table border="0" class="CollectionResourceAlign"><tr><td> 
		<a href="<?php 
        echo $baseurl;
        ?>
/plugins/resourceconnect/pages/view.php?url=<?php 
        echo urlencode($thumb["url"]);
        ?>
&k=<?php 
        echo getval("k", "");
        ?>
&col=<?php 
        echo $usercollection;
        ?>
" onClick="return CentralSpaceLoad(this,true);"><img border=0 src="<?php 
        echo $thumb["thumb"];
        ?>
" class="CollectImageBorder" /></a></td> 
		</tr></table> 

		<div class="CollectionPanelInfo"><a href="<?php 
        echo $baseurl;
        ?>
/plugins/resourceconnect/pages/view.php?url=<?php 
        echo urlencode($thumb["url"]);
        ?>
&k=<?php 
        echo getval("k", "");
        ?>
&col=<?php 
        echo $usercollection;
        ?>
" onClick="return CentralSpaceLoad(this,true);"><?php 
        echo tidy_trim(i18n_get_translated($thumb["title"]), 15);
        ?>
</a>&nbsp;</div> 

		<div class="CollectionPanelInfo"> 
		<a href="<?php 
        echo $baseurl;
        ?>
/pages/collections.php?resourceconnect_remove=<?php 
        echo $thumb["ref"];
        ?>
&nc=<?php 
        echo time();
        ?>
" onClick="return CollectionDivLoad(this,false);">x <?php 
        echo $lang["action-remove"];
        ?>
</a></div>
		</div>
		<?php 
    }
}
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:63,代码来源:collections.php


示例18: do_search

">

<?php 
    if ($feedback_resource_select) {
        ?>
<h2><?php 
        echo $lang["selectedresources"];
        ?>
:</h2><?php 
        # Show thumbnails and allow the user to select resources.
        $result = do_search("!collection" . $collection);
        for ($n = 0; $n < count($result); $n++) {
            $ref = $result[$n]["ref"];
            $access = get_resource_access($ref);
            $use_watermark = check_use_watermark($ref);
            $title = $ref . " : " . htmlspecialchars(tidy_trim(i18n_get_translated($result[$n]["field" . $view_title_field]), 60));
            if (isset($collection_feedback_display_field)) {
                $displaytitle = htmlspecialchars(get_data_by_field($ref, $collection_feedback_display_field));
            } else {
                $displaytitle = $title;
            }
            ?>
	
		<!--Resource Panel-->
		<div class="ResourcePanelShell" id="ResourceShell<?php 
            echo $ref;
            ?>
">
		<div class="ResourcePanel">
		
		<table border="0" class="ResourceAlign<?php 
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:collection_feedback.php


示例19: if

		for ($x=0;$x<count($df);$x++){
		$value=@$result[$n]['field'.$df[$x]['ref']];
		$plugin="../plugins/value_filter_" . $df[$x]['name'] . ".php";
		if ($df[$x]['value_filter']!=""){
			eval($df[$x]['value_filter']);
		}
		else if (file_exists($plugin)) {include $plugin;}
		# swap title fields if necessary
		if (isset($metadata_template_resource_type) && isset ($metadata_template_title_field)){
			if (($df[$x]['ref']==$view_title_field) && ($result[$n]['resource_type']==$metadata_template_resource_type)){
				$value=$result[$n]['field'.$metadata_template_title_field];
				}
			}
		if ( (isset($metadata_template_title_field)&& $df[$x]['ref']!=$metadata_template_title_field ) || !isset($metadata_template_title_field) ) {
			
			?><td nowrap <?php hook("listviewcolumnstyle");?>><?php if ($x==0){ // add link to first item only ?><div class="ListTitle"><a <?php if ($infobox) { ?>onmouseover="InfoBoxSetResource(<?php echo htmlspecialchars($ref)?>);" onmouseout="InfoBoxSetResource(0);"<?php } ?> href="<?php echo $url?>" onClick="return CentralSpaceLoad(this,true);"><?php } //end link conditional?><?php echo highlightkeywords(tidy_trim(TidyList(i18n_get_translated($value)),$results_title_trim),$search,$df[$x]['partial_index'],$df[$x]['name'],$df[$x]['indexed']) ?><?php if ($x==0){ // add link to first item only ?></a><?php } //end link conditional ?></div></td>
			<?php } 
		}
		
		if ($display_user_rating_stars && $k==""){ ?>
			<td <?php hook("listviewcolumnstyle");?>>
			<?php if ($result[$n]['user_rating']=="") {$result[$n]['user_rating']=0;}?>
		
			<div  class="RatingStars" style="text-align:left;margin:0px;" onMouseOut="UserRatingDisplay(<?php echo $result[$n]['ref']?>,<?php echo $result[$n]['user_rating']?>,'StarCurrent');">
			<?php for ($z=1;$z<=5;$z++)
				{
				?><a href="#" onMouseOver="UserRatingDisplay(<?php echo $result[$n]['ref']?>,<?php echo $z?>,'StarSelect');" onClick="UserRatingSet(<?php echo $userref?>,<?php echo $result[$n]['ref']?>,<?php echo $z?>);return false;" id="RatingStarLink<?php echo $result[$n]['ref'].'-'.$z?>"><span id="RatingStar<?php echo $result[$n]['ref'].'-'.$z?>" class="Star<?php echo ($z<=$result[$n]['user_rating']?"Current":"Empty")?>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></a><?php
				}
			?>
		</div></td>
		<?php } ?>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:list.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tie_banner函数代码示例发布时间:2022-05-23
下一篇:
PHP tidy_repair_string函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap