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


PHP i18n_get_collection_name函数代码示例

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


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

示例1: DisplayThemeBar

function DisplayThemeBar($theme1)
        {
        global $lang,$flag_new_themes,$contact_sheet,$theme_images,$allow_share,$n,$baseurl;

        # Work out theme name
        $themename=$theme1;
        $theme_display=getval("theme_$n","off");
       
        $themes=get_themes(array($theme1));
        if (count($themes)>0)
                {
                ?>

<div
onclick="
var theme_display=get_cookie('theme_<?php echo $n?>');
if (theme_display=='off'){var toggle_theme_display='on';} else { var toggle_theme_display='off';}
SetCookie('theme_<?php echo $n?>',toggle_theme_display,1000);
jQuery('#themebar_<?php echo htmlspecialchars(str_replace(array("\""," "),"",$themename)) ?>').slideToggle(0.2);


return false;">                
               
	<a href='#'><b><?php echo htmlspecialchars(stripslashes(i18n_get_translated(str_replace("*","",$themename)))) ?></b></a></div>
               
<div id="themebar_<?php echo htmlspecialchars(str_replace(array("\""," "),"",$themename)) ?>" style="display:<?php if ($theme_display == 'off'){echo 'none';} else {echo '';}?>" >
                <?php
                for ($m=0;$m<count($themes);$m++)
                        { ?><br>
                        &nbsp;&nbsp;&nbsp;<a href="<?php echo $baseurl?>/pages/search.php?search=!collection<?php echo $themes[$m]["ref"]?>&bc_from=themes"  title="<?php echo $lang["collectionviewhover"]?>"><?php echo htmlspecialchars(i18n_get_collection_name($themes[$m])) ?></a>
                        <?php
                        }
                ?><br><br></div><?php
                }
        }
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:35,代码来源:themebar.php

示例2: nicedate

			$relatedshares=explode(",",getvalescaped("sharerelatedresources",""));
			}
		// Create new collection
		$allow_changes=(getval("allow_changes","")!=""?1:0);
		$sharedcollection=create_collection($userref,i18n_get_translated($resource["field".$view_title_field]) . " Share " . nicedate(date("Y-m-d H:i:s")),$allow_changes);
		
		add_resource_to_collection($ref,$sharedcollection);
		if($sharing_related)
			{
			foreach($relatedshares as $relatedshare)
				{
				add_resource_to_collection($relatedshare,$sharedcollection);
				}			
			}
			
		$errors=email_collection($sharedcollection,i18n_get_collection_name($sharedcollection),$userfullname,$users,$message,false,$access,$expires,$user_email,$from_name,$cc,false,"","",$list_recipients,$add_internal_access);
		// Hide from drop down by default
		show_hide_collection($sharedcollection, false, $userref);
		
		if ($errors=="")
			{
			// Log this	
			// fix for bomb on multiple collections, daily stat object ref must be a single number.
			$crefs=explode(",",$ref);
			foreach ($crefs as $cref){		
				daily_stat("E-mailed collection",$cref);
			}
			if (!hook("replacecollectionemailredirect")){
				redirect($baseurl_short."pages/done.php?text=collection_email");
				}
			}
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:resource_email.php

示例3: urlencode

>
	<td><div class="ListTitle">
		<a <?php 
    if ($collections[$n]["public"] == 1 && strlen($collections[$n]["theme"]) > 0) {
        ?>
style="font-style:italic;"<?php 
    }
    ?>
 href="<?php 
    echo $baseurl_short;
    ?>
pages/search.php?search=<?php 
    echo urlencode("!collection" . $collections[$n]["ref"]);
    ?>
" onClick="return CentralSpaceLoad(this);"><?php 
    echo highlightkeywords(i18n_get_collection_name($collections[$n]), $find);
    ?>
</a></div></td>
	<td><?php 
    echo htmlspecialchars(highlightkeywords($colusername, $find));
    ?>
</td>
	<td><?php 
    echo htmlspecialchars(highlightkeywords($collection_prefix . $collections[$n]["ref"], $find));
    ?>
</td>
	<td><?php 
    echo htmlspecialchars(nicedate($collections[$n]["created"], true));
    ?>
</td>
	<td><?php 
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:collection_manage.php

示例4: foreach

 # Archive created, schedule the command file for deletion.
 if (!$use_zip_extension) {
     $deletion_array[] = $cmdfile;
 }
 # Remove temporary files.
 foreach ($deletion_array as $tmpfile) {
     delete_exif_tmpfile($tmpfile);
 }
 # Get the file size of the archive.
 $filesize = @filesize_unlimited($zipfile);
 if ($use_collection_name_in_zip_name) {
     # Use collection name (if configured)
     if ($archiver) {
         $filename = $lang["collectionidprefix"] . $collection . "-" . safe_file_name(i18n_get_collection_name($collectiondata)) . "-" . $size . "." . $collection_download_settings[$settings_id]["extension"];
     } else {
         $filename = $lang["collectionidprefix"] . $collection . "-" . safe_file_name(i18n_get_collection_name($collectiondata)) . "-" . $size . ".zip";
     }
 } else {
     # Do not include the collection name in the filename (default)
     if ($archiver) {
         $filename = $lang["collectionidprefix"] . $collection . "-" . $size . "." . $collection_download_settings[$settings_id]["extension"];
     } else {
         $filename = $lang["collectionidprefix"] . $collection . "-" . $size . ".zip";
     }
 }
 header("Content-Disposition: attachment; filename=" . $filename);
 if ($archiver) {
     header("Content-Type: " . $collection_download_settings[$settings_id]["mime"]);
 } else {
     header("Content-Type: application/zip");
 }
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:collection_download.php

示例5: email_collection


//.........这里部分代码省略.........
     ##  loop through recipients
     for ($nx1 = 0; $nx1 < count($emails); $nx1++) {
         ## loop through collections
         $list = "";
         $list2 = "";
         $origviewlinktext = $viewlinktext;
         // Save this text as we may change it for internal theme shares for this user
         if ($themeshare && !$key_required[$nx1]) {
             $url = "";
             $subject = $applicationname . ": " . $themename;
             $url = $baseurl . "/pages/themes.php" . $themeurlsuffix;
             $viewlinktext = $lang["clicklinkviewthemes"];
             $emailcollectionmessageexternal = false;
             if ($use_phpmailer) {
                 $link = "<a href=\"{$url}\">" . $themename . "</a>";
                 $list .= $htmlbreak . $link;
                 // alternate list style
                 $list2 .= $htmlbreak . $themename . ' -' . $htmlbreaksingle . $url;
                 $templatevars['list2'] = $list2;
             } else {
                 $list .= $htmlbreak . $url;
             }
             for ($nx2 = 0; $nx2 < count($reflist); $nx2++) {
                 #log this
                 collection_log($reflist[$nx2], "E", 0, $emails[$nx1]);
             }
         } else {
             for ($nx2 = 0; $nx2 < count($reflist); $nx2++) {
                 $url = "";
                 $key = "";
                 $emailcollectionmessageexternal = false;
                 # Do we need to add an external access key for this user (e-mail specified rather than username)?
                 if ($key_required[$nx1]) {
                     $k = generate_collection_access_key($reflist[$nx2], $feedback, $emails[$nx1], $access, $expires, $group);
                     $key = "&k=" . $k;
                     $emailcollectionmessageexternal = true;
                 }
                 $url = $baseurl . "/?c=" . $reflist[$nx2] . $key;
                 $collection = array();
                 $collection = sql_query("select name,savedsearch from collection where ref='{$reflist[$nx2]}'");
                 if ($collection[0]["name"] != "") {
                     $collection_name = i18n_get_collection_name($collection[0]);
                 } else {
                     $collection_name = $reflist[$nx2];
                 }
                 if ($use_phpmailer) {
                     $link = "<a href=\"{$url}\">{$collection_name}</a>";
                     $list .= $htmlbreak . $link;
                     // alternate list style
                     $list2 .= $htmlbreak . $collection_name . ' -' . $htmlbreaksingle . $url;
                     $templatevars['list2'] = $list2;
                 } else {
                     $list .= $htmlbreak . $collection_name . $htmlbreak . $url . $htmlbreak;
                 }
                 #log this
                 collection_log($reflist[$nx2], "E", 0, $emails[$nx1]);
             }
         }
         //$list.=$htmlbreak;
         $templatevars['list'] = $list;
         $templatevars['from_name'] = $from_name;
         if (isset($k)) {
             if ($expires == "") {
                 $templatevars['expires_date'] = $lang["email_link_expires_never"];
                 $templatevars['expires_days'] = $lang["email_link_expires_never"];
             } else {
                 $day_count = round((strtotime($expires) - strtotime('now')) / (60 * 60 * 24));
                 $templatevars['expires_date'] = $lang['email_link_expires_date'] . nicedate($expires);
                 $templatevars['expires_days'] = $lang['email_link_expires_days'] . $day_count;
                 if ($day_count > 1) {
                     $templatevars['expires_days'] .= " " . $lang['expire_days'] . ".";
                 } else {
                     $templatevars['expires_days'] .= " " . $lang['expire_day'] . ".";
                 }
             }
         } else {
             # Set empty expiration tempaltevars
             $templatevars['expires_date'] = '';
             $templatevars['expires_days'] = '';
         }
         if ($emailcollectionmessageexternal) {
             $template = $themeshare ? "emailthemeexternal" : "emailcollectionexternal";
         } else {
             $template = $themeshare ? "emailtheme" : "emailcollection";
         }
         if (count($emails > 1) && $list_recipients === true) {
             $body = $lang["list-recipients"] . "\n" . implode("\n", $emails) . "\n\n";
             $templatevars['list-recipients'] = $lang["list-recipients"] . "\n" . implode("\n", $emails) . "\n\n";
         } else {
             $body = "";
         }
         $body .= $templatevars['fromusername'] . " " . ($emailcollectionmessageexternal ? $externalmessage : $internalmessage) . "\n\n" . $templatevars['message'] . "\n\n" . $viewlinktext . "\n\n" . $templatevars['list'];
         #exit ($body . "<br>" . $viewlinktext);
         send_mail($emails[$nx1], $subject, $body, $fromusername, $useremail, $template, $templatevars, $from_name, $cc);
         $viewlinktext = $origviewlinktext;
     }
     hook("additional_email_collection", "", array($colrefs, $collectionname, $fromusername, $userlist, $message, $feedback, $access, $expires, $useremail, $from_name, $cc, $themeshare, $themename, $themeurlsuffix, $template, $templatevars));
     # Return an empty string (all OK).
     return "";
 }
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:101,代码来源:collections_functions.php

示例6: if

	  <?php if (!$disable_collection_toggle) { ?>
		<?php /*if ($count_result<=$max_collection_thumbs) { */?><li><a id="toggleThumbsLink" href="#" onClick="ToggleThumbs();return false;"><?php echo $lang["showthumbnails"]?></a></li><?php /*}*/ ?>
	  <?php } ?>
		<li><a href="<?php echo $baseurl_short?>pages/purchases.php" onclick="return CentralSpaceLoad(this,true);"><?php echo $lang["viewpurchases"]?></a></li>
		</ul>
		</form>

		</div>
		<?php	
		} // end of Basket Mode
	elseif ($k!="")
		{
		# Anonymous access, slightly different display
		$tempcol=$cinfo;
		?>
	<div id="CollectionMinTitle" class="ExternalShare"><h2><?php echo i18n_get_collection_name($tempcol)?></h2></div>
	<div id="CollectionMinRightNav" class="ExternalShare">
		<?php if(!hook("replaceanoncollectiontools")){ ?>
		<?php if ((isset($zipcommand) || $collection_download) && $count_result>0) { ?>
		<li><a onclick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/terms.php?k=<?php echo urlencode($k) ?>&url=<?php echo urlencode("pages/collection_download.php?collection=" .  $usercollection . "&k=" . $k)?>"><?php echo $lang["action-download"]?></a></li>
		<?php } ?>
		<?php if ($feedback) {?><li><a onclick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/collection_feedback.php?collection=<?php echo urlencode($usercollection) ?>&k=<?php echo urlencode($k) ?>"><?php echo $lang["sendfeedback"]?></a></li><?php } ?>
		<?php if ($count_result>0)
			{ 
			# Ability to request a whole collection (only if user has restricted access to any of these resources)
			$min_access=collection_min_access($result);
			if ($min_access!=0)
				{
				?>
				<li><a onclick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/collection_request.php?ref=<?php echo urlencode($usercollection) ?>&k=<?php echo urlencode($k) ?>"><?php echo 	$lang["requestall"]?></a></li>
				<?php
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:collections.php

示例7: email_collection


//.........这里部分代码省略.........
	if(count($reflist)>1){$subject=$applicationname.": ".$lang['mycollections'];}
	else { $subject=$applicationname.": ".$collectionname;}
	
	if ($fromusername==""){$fromusername=$applicationname;}
	
	$externalmessage=$lang["emailcollectionmessageexternal"];
	$internalmessage=$lang["emailcollectionmessage"];
	$viewlinktext=$lang["clicklinkviewcollection"];
	if ($themeshare) // Change the text if sharing a theme category
		{
		$externalmessage=$lang["emailthemecollectionmessageexternal"];
		$internalmessage=$lang["emailthememessage"];
		$viewlinktext=$lang["clicklinkviewcollections"];
		}
		
	##  loop through recipients
	for ($nx1=0;$nx1<count($emails);$nx1++)
		{
		## loop through collections
		$list="";
		$list2="";
		$origviewlinktext=$viewlinktext; // Save this text as we may change it for internal theme shares for this user
		if ($themeshare && !$key_required[$nx1]) # don't send a whole list of collections if internal, just send the theme category URL
			{
			$url="";
			$subject=$applicationname.": " . $themename;
			$url=$baseurl . "/pages/themes.php" . $themeurlsuffix;			
			$viewlinktext=$lang["clicklinkviewthemes"];
			$emailcollectionmessageexternal=false;
			if ($use_phpmailer){
					$link="<a href=\"$url\">" . $themename . "</a>";	
					
					$list.= $htmlbreak.$link;	
					// alternate list style				
					$list2.=$htmlbreak.$themename.' -'.$htmlbreaksingle.$url;
					$templatevars['list2']=$list2;					
					}
				else
					{
					$list.= $htmlbreak.$url;
					}
			for ($nx2=0;$nx2<count($reflist);$nx2++)
				{				
				#log this
				collection_log($reflist[$nx2],"E",0, $emails[$nx1]);
				}
			
			}
		else
			{
			for ($nx2=0;$nx2<count($reflist);$nx2++)
				{
				$url="";
				$key="";
				$emailcollectionmessageexternal=false;
				# Do we need to add an external access key for this user (e-mail specified rather than username)?
				if ($key_required[$nx1])
					{
					$k=generate_collection_access_key($reflist[$nx2],$feedback,$emails[$nx1],$access,$expires);
					$key="&k=". $k;
					$emailcollectionmessageexternal=true;
					}
				$url=$baseurl . 	"/?c=" . $reflist[$nx2] . $key;		
				$collection = array();
				$collection = sql_query("select name,savedsearch from collection where ref='$reflist[$nx2]'");
				if ($collection[0]["name"]!="") {$collection_name = i18n_get_collection_name($collection[0]);}
				else {$collection_name = $reflist[$nx2];}
				if ($use_phpmailer){
					$link="<a href=\"$url\">$collection_name</a>";	
					$list.= $htmlbreak.$link;	
					// alternate list style				
					$list2.=$htmlbreak.$collection_name.' -'.$htmlbreaksingle.$url;
					$templatevars['list2']=$list2;					
					}
				else
					{
					$list.= $htmlbreak . $collection_name . $htmlbreak . $url . $htmlbreak;
					}
				#log this
				collection_log($reflist[$nx2],"E",0, $emails[$nx1]);
				}
			}
		//$list.=$htmlbreak;	
		$templatevars['list']=$list;
		$templatevars['from_name']=$from_name;
		if ($emailcollectionmessageexternal ){
			$template=($themeshare)?"emailthemeexternal":"emailcollectionexternal";
		}
		else {
			$template=($themeshare)?"emailtheme":"emailcollection";
		}
		$body=$templatevars['fromusername']." " . (($emailcollectionmessageexternal)?$externalmessage:$internalmessage) . "\n\n" . $templatevars['message']."\n\n" . $viewlinktext ."\n\n".$templatevars['list'];
		#exit ($body . "<br>" . $viewlinktext);	
		send_mail($emails[$nx1],$subject,$body,$fromusername,$useremail,$template,$templatevars,$from_name,$cc);
		$viewlinktext=$origviewlinktext;
		}
		
	# Return an empty string (all OK).
	return "";
	}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:101,代码来源:collections_functions.php

示例8: if

				#show only active collections if a start date is set for $active_collections 
				if (strtotime($list[$n]['created']) > ((isset($active_collections))?strtotime($active_collections):1))
					{ if ($list[$n]["ref"]==$usercollection) {$currentfound=true;} ?>
					<option value="<?php echo $list[$n]["ref"]?>" <?php if ($list[$n]['ref']==$collection_add) {?> 	selected<?php } ?>><?php echo htmlspecialchars(i18n_get_collection_name($list[$n])) ?> <?php if ($collection_dropdown_user_access_mode){echo htmlspecialchars("(". $colusername."/".$accessmode.")"); } ?></option>
					<?php }
			
				}
			}
		if (!$currentfound && !$upload_force_mycollection)
			{
			# The user's current collection has not been found in their list of collections (perhaps they have selected a theme to edit). Display this as a separate item.
			$cc=get_collection($usercollection);
			if ($cc!==false)
				{$currentfound=true;
				?>
				<option value="<?php echo htmlspecialchars($usercollection) ?>" <?php if ($usercollection==$collection_add){?>selected <?php } ?>><?php echo htmlspecialchars(i18n_get_collection_name($cc)) ?></option>
				<?php
				}
			}
		?>
		</select>
	
		<div class="clearerleft"> </div>
		<div name="collectioninfo" id="collectioninfo" style="display:none;">
		<div name="collectionname" id="collectionname" <?php if ($upload_add_to_new_collection_opt){ ?> style="display:block;"<?php } else { ?> style="display:none;"<?php } ?>>
		<label for="collection_add"><?php echo $lang["collectionname"]?><?php if ($upload_collection_name_required){?><sup>*</sup><?php } ?></label>
		<input type=text id="entercolname" name="entercolname" class="stdwidth" value='<?php echo htmlentities(stripslashes(getval("entercolname","")), ENT_QUOTES);?>'> 
		
		</div>
		
		<?php if ($enable_public_collection_on_upload && ($enable_public_collections || checkperm('h')) && !checkperm('b')) { ?>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:31,代码来源:edit_upload_options.php

示例9: DisplayTheme

    function DisplayTheme($themes = array(), $simpleview = false)
    {
        if ($simpleview) {
            global $baseurl_short;
            $getthemes = get_themes($themes);
            # Themes
            for ($m = 0; $m < count($getthemes); $m++) {
                ?>
				
			<a href="<?php 
                echo $baseurl_short;
                ?>
pages/search.php?search=!collection<?php 
                echo $getthemes[$m]["ref"];
                ?>
" onclick="return CentralSpaceLoad(this,true);" class="FeaturedSimplePanel HomePanel DashTile FeaturedSimpleLink" id="advertising_tile_<?php 
                echo $getthemes[$m]["ref"];
                ?>
">
			<div class="FeaturedSimpleTile">
				<div id="FeaturedSimpleTileContents_<?php 
                echo $getthemes[$m]["ref"];
                ?>
"  class="HomePanelIN FeaturedSimpleTileContents" >	
					<h2><?php 
                echo i18n_get_collection_name($getthemes[$m]);
                ?>
</h2>
				</div>			
			</div>			
			</a>			
			<?php 
            }
        } else {
            global $theme_direct_jump, $themes_column_sorting, $themes_ref_column, $themes_date_column, $baseurl_short, $baseurl, $default_perpage_list, $collection_prefix, $revsort, $sort, $find, $getthemes, $m, $lang, $flag_new_themes, $contact_sheet, $theme_images, $allow_share, $zipcommand, $collection_download, $theme_images_align_right, $themes_category_split_pages, $themes_category_split_pages_parents, $collections_compact_style, $pagename, $show_edit_all_link, $preview_all, $userref, $collection_purge, $themes_category_split_pages, $themes_category_split_pages_parents_root_node, $enable_theme_category_sharing, $enable_theme_category_edit, $show_theme_collection_stats, $lastlevelchange, $themes_single_collection_shortcut, $download_usage;
            $themes_order_by = getvalescaped("themes_order_by", getvalescaped("saved_themes_order_by", "name"));
            $sort = getvalescaped("sort", getvalescaped("saved_themes_sort", "ASC"));
            $revsort = $sort == "ASC" ? "DESC" : "ASC";
            # pager
            $per_page = getvalescaped("per_page_list", $default_perpage_list, true);
            $collection_valid_order_bys = array("name", "c");
            // sorting doesn't work for nonsplit
            if (!$themes_column_sorting || !$themes_category_split_pages || $theme_direct_jump) {
                $sort = "ASC";
                $themes_order_by = "name";
                $themes_column_sorting = false;
            }
            if ($themes_ref_column) {
                $collection_valid_order_bys[] = "ref";
            }
            if ($themes_date_column) {
                $collection_valid_order_bys[] = "created";
            }
            $modified_collection_valid_order_bys = hook("modifycollectionvalidorderbys");
            if ($modified_collection_valid_order_bys) {
                $collection_valid_order_bys = $modified_collection_valid_order_bys;
            }
            if (!in_array($themes_order_by, $collection_valid_order_bys)) {
                $sort = "ASC";
                $themes_order_by = "name";
            }
            # Check the value is one of the valid values (SQL injection filter)
            # Work out theme name
            $themecount = count($themes);
            for ($x = 0; $x < $themecount; $x++) {
                if (isset($themes[$x]) && !isset($themes[$x + 1])) {
                    $themename = i18n_get_translated($themes[$x]);
                }
            }
            $getthemes = get_themes($themes);
            $tmp = hook("getthemesdisp", "", array($themes));
            if ($tmp !== false) {
                $getthemes = $tmp;
            }
            if (!$themes_single_collection_shortcut && count($getthemes) > 0 || $themes_single_collection_shortcut && count($getthemes) > 1) {
                ?>
			<div class="RecordBox">
			<div class="RecordPanel">
	
			<div class="RecordHeader">
	
			<?php 
                if ($themes_category_split_pages && $themes_category_split_pages_parents) {
                    ?>
<h1><?php 
                    echo $lang["collections"];
                    ?>
</h1><?php 
                }
                // count total items in themes
                $totalcount = 0;
                for ($m = 0; $m < count($getthemes); $m++) {
                    $totalcount = $totalcount + $getthemes[$m]['c'];
                }
                if ($theme_images_align_right) {
                    ?>
				<div style="float:right;">
				<?php 
                }
                $images = get_theme_image($themes);
//.........这里部分代码省略.........
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:101,代码来源:themes.php

示例10: CentralSpaceLoad

$result=get_themes_by_resource($ref);
if (count($result)>0) 
	{
	?><!--Panel for related themes / collections -->
	<div class="RecordBox">
	<div class="RecordPanel">  
	<div id="CollectionsThemes">
	<div class="RecordResouce BasicsBox nopadding">
	<div class="Title"><?php echo $lang["collectionsthemes"]?></div>

	<?php
		# loop and display the results
		for ($n=0;$n<count($result);$n++)			
			{
			?>
			<a href="<?php echo $baseurl_short?>pages/search.php?search=!collection<?php echo $result[$n]["ref"]?>" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php echo (strlen($result[$n]["theme"])>0)?htmlspecialchars(str_replace("*","",i18n_get_translated($result[$n]["theme"])) . " / "):$lang["public"] . " : "; ?><?php if (!$collection_public_hide_owner) {echo htmlspecialchars($result[$n]["fullname"] . " / ");} ?><?php echo i18n_get_collection_name($result[$n]); ?></a><br />
			<?php		
			}
		?>
	
	</div>
	</div>
	</div>
	<div class="PanelShadow"></div>
	</div><?php
	}} 


if($enable_find_similar && checkperm('s') && ($k == '')) { ?>
<!--Panel for search for similar resources-->
<div class="RecordBox">
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:view.php

示例11: exit

         $command = $imagemagick_path . "/convert.exe";
     }
     if (!file_exists($command)) {
         $command = $imagemagick_path . "/convert";
     }
     if (!file_exists($command)) {
         exit("Could not find ImageMagick 'convert' utility at location '{$command}'");
     }
     $command .= " -resize {$contact_sheet_preview_size} -quality 90 -colorspace " . $imagemagick_colorspace . " " . escapeshellarg($jpgstoragepath) . " " . escapeshellarg($jpgstoragepath);
     run_command($command);
     return true;
 }
 if (!$is_collection) {
     $filename = $lang['annotations'] . "-" . i18n_get_translated($resourcedata["field" . $view_title_field]);
 } else {
     $filename = $lang['annotations'] . "-" . i18n_get_collection_name($collectiondata);
 }
 if ($cleanup) {
     // cleanup
     if (file_exists($pdfstoragepath)) {
         unlink($pdfstoragepath);
     }
     if (file_exists($jpgstoragepath)) {
         unlink($jpgstoragepath);
     }
     $pathinfo = pathinfo($jpgstoragepath);
     if (file_exists($pathinfo['dirname'])) {
         rmdir($pathinfo['dirname']);
     }
     $pdf->Output($filename . ".pdf", 'D');
 } else {
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:general.php

示例12: CentralSpaceLoad

                ?>
pages/purchases.php" onclick="return CentralSpaceLoad(this,true);"><?php 
                echo $lang["viewpurchases"];
                ?>
</a></li>
		</ul>
		</form>

		</div>
		<?php 
            } elseif ($k != "") {
                # Anonymous access, slightly different display
                $tempcol = $cinfo;
                ?>
	<div id="CollectionMinTitle" class="ExternalShare"><h2><?php 
                echo i18n_get_collection_name($tempcol);
                ?>
</h2></div>
	<div id="CollectionMinRightNav" class="ExternalShare">
		<?php 
                if (!hook("replaceanoncollectiontools")) {
                    ?>
		<?php 
                    if ((isset($zipcommand) || $collection_download) && $count_result > 0) {
                        ?>
		<li><a onclick="return CentralSpaceLoad(this,true);" href="<?php 
                        echo $baseurl_short;
                        ?>
pages/terms.php?k=<?php 
                        echo urlencode($k);
                        ?>
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:collections.php

示例13: if

							$accessmode= $lang["private"];
						}
						else{
							if (strlen($list[$n]["theme"])>0){
								$accessmode= $lang["theme"];
							}
						else{
								$accessmode= $lang["public"];
							}
						}
					}
				}


					?>	
				<option value="<?php echo $list[$n]["ref"]?>" <?php if ($ref==$list[$n]["ref"]) {?> 	selected<?php $found=true;} ?>><?php echo i18n_get_collection_name($list[$n]) ?><?php if ($collection_dropdown_user_access_mode){echo "&nbsp;&nbsp;".htmlspecialchars("(". $colusername."/".$accessmode.")"); } ?></option>
				<?php 
				}
			if ($found==false)
				{
				# Add this one at the end, it can't be found
				$notfound=get_collection($ref);
				if ($notfound!==false)
					{
					?>
					<option value="<?php echo urlencode($ref) ?>" selected><?php echo $notfound["name"]?></option>
					<?php
					}
				}
			
			?>
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:collection_email.php

示例14: CentralSpaceLoad

             $theme_link .= " &gt; <a onClick='return CentralSpaceLoad(this,true);' href='" . $baseurl_short . "pages/themes.php?theme1=" . urlencode($collectiondata["theme"]) . "&theme2=" . urlencode($collectiondata["theme2"]) . "'>" . i18n_get_translated($collectiondata["theme2"]) . "</a>";
         }
         if (strlen($collectiondata["theme3"]) > 0) {
             $theme_link .= " &gt; <a onClick='return CentralSpaceLoad(this,true);' href='" . $baseurl_short . "pages/themes.php?theme1=" . urlencode($collectiondata["theme"]) . "&theme2=" . urlencode($collectiondata["theme2"]) . "&theme3=" . urlencode($collectiondata["theme3"]) . "'>" . i18n_get_translated($collectiondata["theme3"]) . "</a>";
         }
     }
     // add a tooltip to Smart Collection titles (which provides a more detailed view of the searchstring.
     $alt_text = '';
     if ($pagename == "search" && isset($collectiondata['savedsearch']) && $collectiondata['savedsearch'] != '') {
         $smartsearch = sql_query("select * from collection_savedsearch where ref=" . $collectiondata['savedsearch']);
         if (isset($smartsearch[0])) {
             $alt_text = "title='search=" . $smartsearch[0]['search'] . "&restypes=" . $smartsearch[0]['restypes'] . "&archive=" . $smartsearch[0]['archive'] . "&starsearch=" . $smartsearch[0]['starsearch'] . "'";
         }
     }
     hook("collectionsearchtitlemod");
     $search_title .= '<div align="left"><h1><div class="searchcrumbs">' . ($is_theme ? $theme_link . " > " : "") . '<span id="coltitle' . $collection . '"><a ' . $alt_text . ' href="' . $baseurl_short . 'pages/search.php?search=!collection' . $collection . $parameters_string . '" onClick="return CentralSpaceLoad(this,true);">' . i18n_get_collection_name($collectiondata) . ($display_user_and_access ? " <span class='CollectionUser'>(" . $colusername . $colaccessmode . ")" : "") . '</span></a></span>' . $searchcrumbs . '</div></h1> ';
 } elseif ($search == "" && $archive == 0) {
     # Which resource types (if any) are selected?
     $searched_types_refs_array = explode(",", $restypes);
     # Searched resource types and collection types
     $resource_types_array = get_resource_types("", false);
     # Get all resource types, untranslated
     $searched_resource_types_names_array = array();
     for ($n = 0; $n < count($resource_types_array); $n++) {
         if (in_array($resource_types_array[$n]["ref"], $searched_types_refs_array)) {
             $searched_resource_types_names_array[] = htmlspecialchars(lang_or_i18n_get_translated($resource_types_array[$n]["name"], "resourcetype-", "-2"));
         }
     }
     if (count($searched_resource_types_names_array) == count($resource_types_array)) {
         # All resource types are selected, don't list all of them
         unset($searched_resource_types_names_array);
开发者ID:claytondaley,项目名称:resourcespace,代码行数:31,代码来源:search_title_processing.php

示例15: hook

<td class="collectionin"><?php echo $lang["showcollectionindropdown"] ?></td>

<?php hook("beforecollectiontoolscolumnheader");?>
<td class="tools"><div class="ListTools"><?php echo $lang["tools"]?></div></td>
</tr>
<form method="get" name="colactions" id="colactions" action="<?php echo $baseurl_short?>pages/collection_manage.php">
<?php

for ($n=$offset;(($n<count($collections)) && ($n<($offset+$per_page)));$n++)
	{
    $colusername=$collections[$n]['fullname'];

	?><tr <?php hook("collectionlistrowstyle");?>>
	<td class="name"><div class="ListTitle">
		<a <?php if ($collections[$n]["public"]==1 && (strlen($collections[$n]["theme"])>0)) { ?>style="font-style:italic;"<?php } ?> href="<?php echo $baseurl_short?>pages/search.php?search=<?php echo urlencode("!collection" . $collections[$n]["ref"])?>" onClick="return CentralSpaceLoad(this);"><?php echo highlightkeywords(i18n_get_collection_name($collections[$n]),$find) ?></a></div></td>
	<td class="fullname"><?php echo highlightkeywords($colusername,$find) ?></td>
	<td class="ref"><?php echo highlightkeywords($collection_prefix . $collections[$n]["ref"],$find) ?></td>
	<td class="created"><?php echo nicedate($collections[$n]["created"],true) ?></td>
	<td class="count"><?php echo $collections[$n]["count"] ?></td>
<?php if (! $hide_access_column){ ?>	<td class="access"><?php
# Work out the correct access mode to display
if (!hook('collectionaccessmode')) {
	if ($collections[$n]["public"]==0){
		echo $lang["private"];
	}
	else{
		if (strlen($collections[$n]["theme"])>0){
			echo $lang["theme"];
		}
	else{
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:30,代码来源:collection_manage.php


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