⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collections.php

📁 php网页设计
💻 PHP
📖 第 1 页 / 共 2 页
字号:
			?>			<option value="<?=$list[$n]["ref"]?>" <? if ($usercollection==$list[$n]["ref"]) {?> 	selected<? $found=true;} ?>><?=htmlspecialchars($list[$n]["name"])?></option>			<?			}		if ($found==false)			{			# Add this one at the end, it can't be found			$notfound=get_collection($usercollection);			?>			<option selected><?=$notfound["name"]?></option>			<?			}		?>		<option value="-1">(<?=$lang["createnewcollection"]?>)</option>		</select>		</div>				  </form>  <ul>  	<? if ((!(sql_value("select count(*) value from research_request where collection='$usercollection'",0)>0)) || (!checkperm("r"))) { ?>    		<? if (checkperm("s")) { ?><li><a href="collection_manage.php" target="main">&gt; <?=$lang["managemycollections"]?></a></li>    <? if (checkperm("v") || checkperm("g")) { ?><li><a href="collection_email.php?ref=<?=$usercollection?>" target="main">&gt; <?=$lang["email"]?>&nbsp;&nbsp;</a><? } ?>        <? if (($userref==$cinfo["user"]) || (checkperm("h"))) {?><a target="main" href="collection_edit.php?ref=<?=$usercollection?>">&gt;&nbsp;<?=$lang["edit"]?></a><? } ?>        </li><? } ?>    <? } else {    $research=sql_value("select ref value from research_request where collection='$usercollection'",0);    ?>    <li><a href="team_research_edit.php?ref=<?=$research?>" target="main">&gt;<?=$lang["editresearchrequests"]?></a></li>        <li><a href="team_research.php" target="main">&gt; <?=$lang["manageresearchrequests"]?></a></li>        <? } ?>        <?     # If this collection is (fully) editable, then display an extra edit all link    if ((count($result)>0) && checkperm("e" . $result[0]["archive"]) && allow_multi_edit($usercollection)) { ?>    <li><a href="search.php?search=<?=urlencode("!collection" . $usercollection)?>" target="main">&gt; <?=$lang["viewall"]?></a>    &nbsp;&nbsp;    <a href="edit.php?collection=<?=$usercollection?>" target="main">&gt; <?=$lang["editall"]?></a>    </li>        <? } else { ?>    <li><a href="search.php?search=<?=urlencode("!collection" . $usercollection)?>" target="main">&gt; <?=$lang["viewall"]?></a></li>    <? } ?>        <li>   	<? if (isset($zipcommand)) { ?>    <a target="main" href="collection_download.php?collection=<?=$usercollection?>">&gt; <?=$lang["zipall"]?></a>    &nbsp;&nbsp;	<? } ?>    <a href="collections.php?thumbs=hide" onClick="ToggleThumbs();">&gt; <?=$lang["hidethumbnails"]?></a>	</li>  </ul><? } ?></div><? } ?><!--Resource panels--><div id="CollectionSpace"><?# Loop through saved searchesfor ($n=0;$n<count($searches);$n++)					{		$ref=$searches[$n]["ref"];		$url="search.php?search=" . urlencode($searches[$n]["search"]) . "&restypes=" . urlencode($searches[$n]["restypes"]) . "&archive=" . $searches[$n]["archive"];		?>		<!--Resource Panel-->		<div class="CollectionPanelShell">		<table border="0" class="CollectionResourceAlign"><tr><td>		<a target="main" href="<?=$url?>"><img border=0 width=56 height=75 src="gfx/images/save-search.gif"/></a></td>		</tr></table>		<div class="CollectionPanelInfo"><a target="main" href="<?=$url?>"><?=$lang["savedsearch"]?> <?=$n+1?></a>&nbsp;</div>		<div class="CollectionPanelInfo"><a href="collections.php?removesearch=<?=$ref?>&nc=<?=time()?>">x <?=$lang["action-remove"]?></a></div>						</div>		<?				}# Loop through thumbnailsif (count($result)>0) 	{	# loop and display the results	for ($n=0;$n<count($result);$n++)					{		$ref=$result[$n]["ref"];		?><? if (!hook("resourceview")) { ?>		<!--Resource Panel-->		<div class="CollectionPanelShell" id="ResourceShell<?=$ref?>">		<table border="0" class="CollectionResourceAlign"><tr><td>		<a target="main" href="view.php?ref=<?=$ref?>&search=<?=urlencode("!collection" . $usercollection)?>&k=<?=$k?>"><? if ($result[$n]["has_image"]==1) { 				$colimgpath = get_resource_path($ref,"col",false,$result[$n]["preview_extension"],-1,1,checkperm("w"));		if (file_exists(myrealpath($colimgpath)))		{?><img border=0 src="<?=$colimgpath?>" class="CollectImageBorder"<? if ($infobox) { ?>onMouseOver="InfoBoxSetResource(<?=$ref?>);" onMouseOut="InfoBoxSetResource(0);"<? } ?>/><?		}					else		{			$colimgpath = get_resource_path($ref,"thm",false,$result[$n]["preview_extension"],-1,1,checkperm("w"));?><img border=0 src="<?=$colimgpath?>" class="CollectImageBorder" width="90" height="75"<? if ($infobox) { ?>onMouseOver="InfoBoxSetResource(<?=$ref?>);" onMouseOut="InfoBoxSetResource(0);"<? } ?>/><?				}				} else { ?><img border=0 src="gfx/type<?=$result[$n]["resource_type"]?>_col.gif"		<? if ($infobox) { ?>onMouseOver="InfoBoxSetResource(<?=$ref?>);" onMouseOut="InfoBoxSetResource(0);"<? } ?>		/><? } ?></a></td>		</tr></table>		<div class="CollectionPanelInfo"><a target="main" href="view.php?ref=<?=$ref?>&search=<?=urlencode("!collection" . $usercollection)?>&k=<?=$k?>"><?=tidy_trim($result[$n]["title"],14)?></a>&nbsp;</div>		<? if ($k=="") { ?><div class="CollectionPanelInfo">		<? if ($collection_reorder_caption && $allow_reorder) { ?>		<span class="IconComment <? if ($result[$n]["commentset"]>0) { ?>IconCommentAnim<? } ?>"><a target="main" href="collection_comment.php?ref=<?=$ref?>&collection=<?=$usercollection?>"><img src="gfx/interface/sp.gif" alt="" width="14" height="12" /></a></span>					<div class="IconReorder" onMouseDown="InfoBoxWaiting=false;"> </div>		<span class="IconRemove"><a href="collections.php?remove=<?=$ref?>&nc=<?=time()?>"><img src="gfx/interface/sp.gif" alt="" width="14" height="12" /></a></span>		<? } else { ?>		<a href="collections.php?remove=<?=$ref?>&nc=<?=time()?>">x <?=$lang["action-remove"]?></a>		<? } ?>		</div><? } ?>					</div>		<? if ($collection_reorder_caption && $allow_reorder) { 		# Javascript drag/drop enabling.		?>		<script type="text/javascript">		new Draggable('ResourceShell<?=$ref?>',{handle: 'IconReorder', revert: true});		Droppables.add('ResourceShell<?=$ref?>',{accept: 'CollectionPanelShell', onDrop: function(element) {ReorderResources(element.id,<?=$ref?>);}, hoverclass: 'ReorderHover'});		</script>		<? } ?><? } ?>				<?				}	}	# Plugin for additional collection listings	(deprecated)	if (file_exists("plugins/collection_listing.php")) {include "plugins/collection_listing.php";}	?>	</div>	<?# Add the infobox.?><div id="InfoBoxCollection"><div id="InfoBoxCollectionInner"> </div></div><?}else{# ------------------------- Minimised view?><!--Title-->	<? if (!hook("nothumbs")) { ?><div id="CollectionMinTitle"><h2><?=$lang["mycollections"]?></h2></div><!--Menu-->	<div id="CollectionMinRightNav">  <ul>  	<? if ((!(sql_value("select count(*) value from research_request where collection='$usercollection'",0)>0)) || (!checkperm("r"))) { ?>    		<? if (checkperm("s")) { ?><li><a href="collection_manage.php" target="main"><?=$lang["managemycollections"]?></a></li>    <li><a href="collection_email.php?ref=<?=$usercollection?>" target="main"><?=$lang["email"]?></a></li><? } ?>        <? if (($userref==$cinfo["user"]) || (checkperm("h"))) {?><li><a target="main" href="collection_edit.php?ref=<?=$usercollection?>"><?=$lang["edit"]?></a></li><? } ?>    <? } else {    $research=sql_value("select ref value from research_request where collection='$usercollection'",0);    ?>    <li><a href="team_research_edit.php?ref=<?=$research?>" target="main"><?=$lang["editresearchrequests"]?></a></li>        <li><a href="team_research.php" target="main"><?=$lang["manageresearchrequests"]?></a></li>        <? } ?>    <?     # If this collection is (fully) editable, then display an extra edit all link    if ((count($result)>0) && checkperm("e" . $result[0]["archive"]) && allow_multi_edit($usercollection)) { ?>    <li><a href="search.php?search=<?=urlencode("!collection" . $usercollection)?>" target="main"><?=$lang["viewall"]?></a></li>    <li><a href="edit.php?collection=<?=$usercollection?>" target="main"><?=$lang["editall"]?></a></li>        <? } else { ?>    <li><a href="search.php?search=<?=urlencode("!collection" . $usercollection)?>" target="main"><?=$lang["viewall"]?></a></li>    <? } ?>   	<? if (isset($zipcommand)) { ?>    <li><a target="main" href="collection_download.php?collection=<?=$usercollection?>"><?=$lang["zipall"]?></a></li>	<? } ?>    <li><a href="collections.php?thumbs=show" onClick="ToggleThumbs();"><?=$lang["showthumbnails"]?></a></li>  </ul></div><!--Collection Dropdown-->	<div id="CollectionMinDropTitle"><?=$lang["currentcollection"]?>:&nbsp;</div>				<div id="CollectionMinDrop"><form id="colselect" method="get">		<div class="MinSearchItem">		<select name="collection" class="SearchWidth" onchange="document.getElementById('colselect').submit();">		<?		$found=false;		$list=get_user_collections($userref);		for ($n=0;$n<count($list);$n++)			{			?>			<option value="<?=$list[$n]["ref"]?>" <? if ($usercollection==$list[$n]["ref"]) {?> selected<? $found=true;}?>><?=htmlspecialchars($list[$n]["name"])?></option>			<?			}		if ($found==false)			{			# Add this one at the end, it can't be found			$notfound=get_collection($usercollection);			?>			<option selected><?=$notfound["name"]?></option>			<?			}		?>		<option value="-1">(<?=$lang["createnewcollection"]?>)</option>		</select>				</div>				  </form></div><? } ?><!--Collection Count-->	<div id="CollectionMinitems"><strong><?=count($result)?></strong>&nbsp;<?=$lang["items"]?></div>		<? } ?></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -