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

PHP nicedate函数代码示例

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

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



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

示例1: urlencode

		<td><?php echo $lang["lastused"];?></td>
		<td><?php echo $lang["expires"];?></td>
		<td><?php echo $lang["access"];?></td>
		<td><div class="ListTools"><?php echo $lang["tools"]?></div></td>
		</tr>
		<?php
		for ($n=0;$n<count($keys);$n++)
			{
			?>
			<tr>
			<td><div class="ListTitle"><a target="_blank" href="<?php echo $baseurl . "?c=" . urlencode($ref) . "&k=" . urlencode($keys[$n]["access_key"]) ?>"><?php echo htmlspecialchars($keys[$n]["access_key"]) ?></a></div></td>
			<td><?php echo htmlspecialchars(resolve_users($keys[$n]["users"]))?></td>
			<td><?php echo htmlspecialchars($keys[$n]["emails"]) ?></td>
			<td><?php echo htmlspecialchars(nicedate($keys[$n]["maxdate"],true));	?></td>
			<td><?php echo htmlspecialchars(nicedate($keys[$n]["lastused"],true)); ?></td>
			<td><?php echo htmlspecialchars(($keys[$n]["expires"]=="")?$lang["never"]:nicedate($keys[$n]["expires"],false)) ?></td>
			<td><?php echo htmlspecialchars(($keys[$n]["access"]==-1)?"":$lang["access" . $keys[$n]["access"]]); ?></td>
			<td><div class="ListTools">
			<a href="#" onClick="if (confirm('<?php echo $lang["confirmdeleteaccess"]?>')) {document.getElementById('deleteaccess').value='<?php echo htmlspecialchars($keys[$n]["access_key"]) ?>';document.getElementById('collectionform').submit(); }">&gt;&nbsp;<?php echo $lang["action-delete"]?></a>
			</div></td>
			</tr>
			<?php
			}
		?>
		</table>
		</div>
		<?php
		}
	?>
	</div>	
	
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:30,代码来源:collection_share.php


示例2: urlencode

    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 
    echo htmlspecialchars($collections[$n]["count"]);
    ?>
</td>
<?php 
    if (!$hide_access_column) {
        ?>
	<td><?php 
        # Work out the correct access mode to display
        if (!hook('collectionaccessmode')) {
            if ($collections[$n]["public"] == 0) {
                echo $lang["private"];
            } else {
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:collection_manage.php


示例3: foreach

</td>
            </tr>
            <?php 
if ($no_records) {
    ?>
                <tr><td colspan="10"><b><?php 
    echo $lang['track_field_history_error_no_records'];
    ?>
</b></td></tr>
            <?php 
}
foreach ($field_log_records as $field_log_record) {
    ?>
                <tr>
                    <td nowrap><?php 
    echo nicedate($field_log_record['date'], true, true);
    ?>
</td>
                    <td><?php 
    echo $field_log_record['user'];
    ?>
</td>
                    <td><?php 
    echo nl2br(htmlspecialchars(strip_tags($field_log_record['diff'])));
    ?>
</td>
                </tr>
                <?php 
}
?>
        </table>
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:field_history_log.php


示例4: 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


示例5: if

<?php if(!hook("replaceemailexpiryselector")){?>
<div class="Question">
<label><?php echo $lang["externalselectresourceexpires"]?></label>
<select name="expires" class="stdwidth">
<?php if($resource_share_expire_never) { ?><option value=""><?php echo $lang["never"]?></option><?php }
				
for ($n=1;$n<=150;$n++)
	{
	$date = time()+(60*60*24*$n);
	$d    = date("D",$date);
	$option_class = '';
	if (($d == "Sun") || ($d == "Sat"))
		{
		$option_class = 'optionWeekend';
		} ?>
	<option class="<?php echo $option_class ?>" value="<?php echo date("Y-m-d",$date)?>"><?php echo nicedate(date("Y-m-d",$date),false,true)?></option>
	<?php
	}
?>
</select>
<div class="clearerleft"> </div>
</div>
<?php } ?>


<?php if (checkperm("x")) {
# Allow the selection of a user group to inherit permissions from for this share (the default is to use the current user's user group).
?>
<div class="Question">
<label for="groupselect"><?php echo $lang["externalshare_using_permissions_from_user_group"] ?></label>
<select id="groupselect" name="usergroup" class="stdwidth">
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:resource_email.php


示例6: htmlspecialchars

    ?>
</td>	
	<td><?php 
    echo htmlspecialchars($files[$n]["description"]);
    ?>
&nbsp;</td>	
	<td><?php 
    echo $files[$n]["file_extension"] == "" ? $lang["notuploaded"] : htmlspecialchars(str_replace_formatted_placeholder("%extension", $files[$n]["file_extension"], $lang["cell-fileoftype"]));
    ?>
</td>	
	<td><?php 
    echo formatfilesize($files[$n]["file_size"]);
    ?>
</td>	
	<td><?php 
    echo nicedate($files[$n]["creation_date"], true);
    ?>
</td>
	<?php 
    if (count($alt_types) > 1) {
        ?>
<td><?php 
        echo $files[$n]["alt_type"];
        ?>
</td><?php 
    }
    ?>
	<td><div class="ListTools">
	
	<a href="#" onclick="if (confirm('<?php 
    echo $lang["filedeleteconfirm"];
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:alternative_files.php


示例7: HookLicensemanagerViewCustompanels

function HookLicensemanagerViewCustompanels()
	{
	global $lang,$baseurl_short,$ref,$edit_access;
	
	$licenses=sql_query("select ref,outbound,holder,license_usage,description,expires from resource_license where resource='$ref' order by ref");
	?>
    <!-- Begin Geolocation Section -->
    <div class="RecordBox">
    <div class="RecordPanel">
    <div class="Title"><?php echo $lang["license_management"] ?></div>

    <?php if ($edit_access) { ?>    
    <p>&gt;&nbsp;<a href="<?php echo $baseurl_short ?>plugins/licensemanager/pages/edit.php?ref=new&resource=<?php echo $ref ?>" onClick="return CentralSpaceLoad(this,true);"><?php echo $lang["new_license"] ?></a></p>	
    <?php } ?>
   
	<?php if (count($licenses)>0) { ?>
		<div class="Listview">
		<table border="0" cellspacing="0" cellpadding="0" class="ListviewStyle">
		<tr class="ListviewTitleStyle">
		<td><?php echo $lang["license_id"] ?></a></td>
		<td><?php echo $lang["type"] ?></a></td>
		<td><?php echo $lang["licensor_licensee"] ?></a></td>
		<td><?php echo $lang["indicateusagemedium"] ?></a></td>
		<td><?php echo $lang["description"] ?></a></td>
		<td><?php echo $lang["fieldtitle-expiry_date"] ?></a></td>

		<?php if ($edit_access) { ?>
		<td><div class="ListTools"><?php echo $lang["tools"] ?></div></td>
		<?php } ?>
		
		</tr>
	
		<?php
		foreach ($licenses as $license)
			{
			?>
			<tr>
			<td><?php echo $license["ref"] ?></td>
			<td><?php echo ($license["outbound"]?$lang["outbound"]:$lang["inbound"]) ?></td>
			<td><?php echo $license["holder"] ?></td>
			<td><?php echo $license["license_usage"] ?></td>
			<td><?php echo $license["description"] ?></td>
			<td><?php echo nicedate($license["expires"]) ?></td>
		
			<?php if ($edit_access) { ?>
			<td><div class="ListTools">
			<a href="<?php echo $baseurl_short ?>plugins/licensemanager/pages/edit.php?ref=<?php echo $license["ref"] ?>&resource=<?php echo $ref ?>" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;Edit</a>
			<a href="<?php echo $baseurl_short ?>plugins/licensemanager/pages/delete.php?ref=<?php echo $license["ref"] ?>&resource=<?php echo $ref ?>" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;Delete</a>
			</div></td>
			<?php } ?>
						
			</tr>
			<?php
			}
		?>
		
		</table>
		</div>
	<?php } ?>

    
    </div>
    <div class="PanelShadow"></div>
    </div>
    <?php
	return false; # Allow further custom panels
	}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:67,代码来源:view.php


示例8: time

<?php 
    for ($n = 1; $n <= 150; $n++) {
        $date = time() + 60 * 60 * 24 * $n;
        ?>
<option <?php 
        $d = date("D", $date);
        if ($d == "Sun" || $d == "Sat") {
            ?>
style="background-color:#cccccc"<?php 
        }
        ?>
 value="<?php 
        echo date("Y-m-d", $date);
        ?>
"><?php 
        echo nicedate(date("Y-m-d", $date), false, true);
        ?>
</option>
	<?php 
    }
    ?>
</select>
<div class="clearerleft"> </div>
</div>
<?php 
}
?>

<?php 
if ($email_from_user) {
    if ($useremail != "") {
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:resource_email.php


示例9: HookLicensemanagerViewCustompanels


//.........这里部分代码省略.........
		<td><div class="ListTools"><?php 
            echo $lang["tools"];
            ?>
</div></td>
		<?php 
        }
        ?>
		
		</tr>
	
		<?php 
        foreach ($licenses as $license) {
            $license_usage_mediums = trim_array(explode(", ", $license["license_usage"]));
            $translated_mediums = "";
            ?>
			<tr>
			<td><?php 
            echo $license["ref"];
            ?>
</td>
			<td><?php 
            echo $license["outbound"] ? $lang["outbound"] : $lang["inbound"];
            ?>
</td>
			<td><?php 
            echo $license["holder"];
            ?>
</td>
			<td><?php 
            foreach ($license_usage_mediums as $medium) {
                $translated_mediums = $translated_mediums . lang_or_i18n_get_translated($medium, "license_usage-") . ", ";
            }
            $translated_mediums = substr($translated_mediums, 0, -2);
            # Remove the last ", "
            echo $translated_mediums;
            ?>
			</td>
			<td><?php 
            echo $license["description"];
            ?>
</td>
			<td><?php 
            echo nicedate($license["expires"]);
            ?>
</td>
		
			<?php 
            if ($edit_access) {
                ?>
			<td><div class="ListTools">
			<a href="<?php 
                echo $baseurl_short;
                ?>
plugins/licensemanager/pages/edit.php?ref=<?php 
                echo $license["ref"];
                ?>
&resource=<?php 
                echo $ref;
                ?>
" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php 
                echo $lang["action-edit"];
                ?>
</a>
			<a href="<?php 
                echo $baseurl_short;
                ?>
plugins/licensemanager/pages/delete.php?ref=<?php 
                echo $license["ref"];
                ?>
&resource=<?php 
                echo $ref;
                ?>
" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php 
                echo $lang["action-delete"];
                ?>
</a>
			</div></td>
			<?php 
            }
            ?>
						
			</tr>
			<?php 
        }
        ?>
		
		</table>
		</div>
	<?php 
    }
    ?>

    
    </div>
    <div class="PanelShadow"></div>
    </div>
    <?php 
    return false;
    # Allow further custom panels
}
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:101,代码来源:view.php


示例10: nicedate

    if (!hook("requestlistitems")) {
        ?>
	<td><?php 
        echo $requests[$n]["ref"];
        ?>
</td>
	<td><?php 
        echo $requests[$n]["username"];
        ?>
</td>
	<td><?php 
        echo $requests[$n]["fullname"];
        ?>
</td>
	<td><?php 
        echo nicedate($requests[$n]["created"], true);
        ?>
</td>
	<td><?php 
        echo $requests[$n]["c"];
        ?>
</td>
	<td><?php 
        echo $lang["resourcerequesttype" . $requests[$n]["request_mode"]];
        ?>
</td>
	<td><?php 
        echo $requests[$n]["assigned_to_username"];
        ?>
</td>
	<td><?php 
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:team_request.php


示例11: nicedate

            ?>
</td>
			<td><?php 
            echo $keys[$n]["emails"];
            ?>
</td>
			<td><?php 
            echo nicedate($keys[$n]["maxdate"], true);
            ?>
</td>
			<td><?php 
            echo nicedate($keys[$n]["lastused"], true);
            ?>
</td>
			<td><?php 
            echo $keys[$n]["expires"] == "" ? $lang["never"] : nicedate($keys[$n]["expires"], false);
            ?>
</td>
			<td><?php 
            echo $keys[$n]["access"] == -1 ? "" : $lang["access" . $keys[$n]["access"]];
            ?>
</td>
			<td><div class="ListTools">
			<a href="#" onClick="if (confirm('<?php 
            echo $lang["confirmdeleteaccess"];
            ?>
')) {document.getElementById('deleteaccess').value='<?php 
            echo $keys[$n]["access_key"];
            ?>
';document.getElementById('collectionform').submit(); }">&gt;&nbsp;<?php 
            echo $lang["action-delete"];
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:collection_share.php


示例12: htmlentities

</td>
			<td><a href="#Header" onclick="message_display('<?php 
    echo $message;
    ?>
','<?php 
    echo $url_encoded;
    ?>
',<?php 
    echo $messages[$n]["ref"];
    ?>
);"><?php 
    echo htmlentities(strip_tags($messages[$n]["message"]));
    ?>
</a></td>
			<td><?php 
    echo nicedate($messages[$n]["expires"]);
    ?>
</td>
			<td><?php 
    echo $messages[$n]["seen"] == 0 ? $lang['no'] : $lang['yes'];
    ?>
</td>
			<td>
				<div class="ListTools">
					<a href="<?php 
    echo $messages[$n]["url"];
    ?>
">&gt;&nbsp;<?php 
    echo $lang["link"];
    ?>
</a>
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:user_messages.php


示例13: htmlspecialchars

<div class="Question"><label><?php echo $lang["descriptionofproject"]?></label><div class="Fixed"><?php echo htmlspecialchars($research["description"]) ?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["requestedby"]?></label><div class="Fixed"><?php echo $research["username"]?></div>
<div class="clearerleft"> </div></div>

<?php if (isset($anonymous_login) && $research["username"]==$anonymous_login) { ?>
<div class="Question"><label><?php echo $lang["email"]?></label><div class="Fixed"><a href="mailto:<?php echo htmlspecialchars($research["email"])?>"><?php echo htmlspecialchars($research["email"])?></a></div>
<div class="clearerleft"> </div></div>
<?php } ?>

<div class="Question"><label><?php echo $lang["date"]?></label><div class="Fixed"><?php echo nicedate($research["created"],false,true)?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["deadline"]?></label><div class="Fixed"><?php echo nicedate($research["deadline"],false,true)?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["contacttelephone"]?></label><div class="Fixed"><?php echo htmlspecialchars($research["contact"])?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["finaluse"]?></label><div class="Fixed"><?php echo $research["finaluse"]?></div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["resourcetypes"]?></label><div class="Fixed">
<?php $first=true;$set=explode(", ",$research["resource_types"]);$types=get_resource_types();for ($n=0;$n<count($types);$n++) {if (in_array($types[$n]["ref"],$set)) {if (!$first) {echo ", ";}echo $types[$n]["name"];$first=false;}} ?>
</div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php echo $lang["noresourcesrequired"]?></label><div class="Fixed"><?php echo $research["noresources"]?></div>
<div class="clearerleft"> </div></div>
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:30,代码来源:team_research_edit.php


示例14: hook

<?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{
		echo $lang["public"];
		}
	}
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:31,代码来源:collection_manage.php


示例15: exit

    }
    if (!isset($collection_download_settings)) {
        exit($lang["collection_download_settings-not-defined"]);
    } else {
        if (!is_array($collection_download_settings)) {
            exit($lang["collection_download_settings-not-an-array"]);
        }
    }
    if (!isset($archiver_listfile_argument)) {
        exit($lang["listfile-argument-not-defined"]);
    }
}
$archiver = $collection_download && $archiver_fullpath != false && isset($archiver_listfile_argument) && (isset($collection_download_settings) ? is_array($collection_download_settings) : false);
# initiate text file
if ($zipped_collection_textfile == true && $includetext == "true") {
    $text = i18n_get_collection_name($collectiondata) . "\r\n" . $lang["downloaded"] . " " . nicedate(date("Y-m-d H:i:s"), true, true) . "\r\n\r\n" . $lang["contents"] . ":\r\n\r\n";
}
# get collection
$result = do_search("!collection" . $collection);
$modified_result = hook("modifycollectiondownload");
if (is_array($modified_result)) {
    $result = $modified_result;
}
#this array will store all the available downloads.
$available_sizes = array();
# get file extension from database or use jpg.
function get_extension($resource, $size)
{
    $pextension = $size == 'original' ? $resource["file_extension"] : 'jpg';
    $replace_extension = hook('replacedownloadextension', '', array($resource, $pextension));
    if (!empty($replace_extension)) {
开发者ID:chandradrupal,项目名称:resourcespace,代码行数:31,代码来源:collection_download.php


示例16: hook

        ?>
 >
				<?php 
        echo $lang["status" . $result[$n]["archive"]];
        ?>
			</td>
			<?php 
    }
    if ($date_column) {
        ?>
		 	<td <?php 
        hook("listviewcolumnstyle");
        ?>
 >
		 		<?php 
        echo nicedate($result[$n]["creation_date"], false, true);
        ?>
		 	</td>
		 	<?php 
    }
    hook("addlistviewcolumn");
    ?>
		<td <?php 
    hook("listviewcolumnstyle");
    ?>
 >
			<div class="ListTools">
			<?php 
    if ($search_results_edit_icon && checkperm("e" . $result[$n]["archive"]) && !hook("iconedit")) {
        if ($allow_share && $k == "") {
            ?>
开发者ID:perryrothjohnson,项目名称:resourcespace,代码行数:31,代码来源:list.php


示例17: while

	<tr>
		<th width=100>Date</th>
		<th width=75>From</th>
		<th width=75>To</th>
		<th width=75>Amount</th>
		<th width=100>Category</th>
		<th width=200>Comment</th>
		<th width=20>Delete</th>
	</tr>

<?php 
while ($therow = mysql_fetch_array($result)) {
    ?>
	<tr valign=top>
		<td><?php 
    echo nicedate($therow['thedate']);
    ?>
</td>
		<td><?php 
    echo $therow['fromname'];
    ?>
</td>
		<td><?php 
    echo $therow['toname'];
    ?>
</td>
		<td align=right>$<?php 
    echo number_format($therow['amount'], 2);
    ?>
</td>
		<td><?php 
开发者ID:nicolaskruchten,项目名称:PHPTab,代码行数:31,代码来源:mainpage.php


示例18: elseif



	</form>
	</div>
	<?php	
	}
elseif ($k!="")
	{
	# ------------- Anonymous access, slightly different display ------------------
	$tempcol=$cinfo;
	?>
<div id="CollectionMenu">
  <h2><?php echo i18n_get_collection_name($tempcol)?></h2>
	<br />
	<div class="CollectionStatsAnon">
	<?php echo $lang["created"] . " " . nicedate($tempcol["created"])?><br />
  	<?php echo $count_result . " " . $lang["youfoundresources"]?><br />
  	</div>
    <?php
	if ($download_usage && ((isset($zipcommand) || $collection_download) && $count_result>0)) { ?>
		<a onclick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/terms.php?k=<?php echo urlencode($k) ?>&url=<?php echo urlencode("pages/download_usage.php?collection=" .  $usercollection . "&k=" . $k)?>">&gt; <?php echo $lang["action-download"]?></a>
	<?php } else if ((isset($zipcommand) || $collection_download) && $count_result>0) { ?>
	<a 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)?>" onclick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php echo $lang["action-download"]?></a>
	<?php }
     if ($feedback) {?><br /><br /><a onclick="return CentralSpaceLoad(this);" href="<?php echo $baseurl_short?>pages/collection_feedback.php?collection=<?php echo urlencode($usercollection) ?>&k=<?php echo urlencode($k) ?>">&gt;&nbsp;<?php echo $lang["sendfeedback"]?></a><?php } ?>
    <?php if ($count_result>0 && checkperm("q"))
    	{ 
		# 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)
			{
开发者ID:artsmia,项目名称:mia_resourcespace,代码行数:29,代码来源:collections.php


示例19: nicedate

?>

<div class="Question"><label><?php 
echo $lang["date"];
?>
</label><div class="Fixed"><?php 
echo nicedate($research["created"], false, true);
?>
</div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php 
echo $lang["deadline"];
?>
</label><div class="Fixed"><?php 
echo nicedate($research["deadline"], false, true);
?>
</div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php 
echo $lang["contacttelephone"];
?>
</label><div class="Fixed"><?php 
echo htmlspecialchars($research["contact"]);
?>
</div>
<div class="clearerleft"> </div></div>

<div class="Question"><label><?php 
echo $lang["finaluse"];
开发者ID:vongalpha,项目名称:resourcespace,代码行数:31,代码来源:team_research_edit.php


示例20: email_resource

 function email_resource($resource, $resourcename, $fromusername, $userlist, $message, $access = -1, $expires = "", $useremail = "", $from_name = "", $cc = "", $list_recipients = false, $open_internal_access = false, $useraccess = 2, $group = "")
 {
     # Attempt to resolve all users in the string $userlist to user references.
     global $baseurl, $email_from, $applicationname, $lang, $userref, $usergroup, $attach_user_smart_groups;
     if ($useremail == "") {
         $useremail = $email_from;
     }
     if ($group == "") {
         $group = $usergroup;
     }
     # remove any line breaks that may have been entered
     $userlist = str_replace("\\r\\n", ",", $userlist);
     if (trim($userlist) == "") {
         return $lang["mustspecifyoneusername"];
     }
     $userlist = resolve_userlist_groups($userlist);
     if ($attach_user_smart_groups && strpos($userlist, $lang["groupsmart"] . ": ") !== false) {
         $userlist_with_groups = $userlist;
         $groups_users = resolve_userlist_groups_smart($userlist, true);
         if ($groups_users != '') {
             if ($userlist != "") {
                 $userlist = remove_groups_smart_from_userlist($userlist);
                 if ($userlist != "") {
                     $userlist .= ",";
                 }
             }
             $userlist .= $groups_users;
         }
     }
     $ulist = trim_array(explode(",", $userlist));
     $ulist = array_filter($ulist);
     $ulist = array_values($ulist);
     $emails = array();
     $key_required = array();
     $emails_keys = resolve_user_emails($ulist);
     $unames = $emails_keys['unames'];
     $emails = $emails_keys['emails'];
     $key_required = $emails_keys['key_required'];
     # Send an e-mail to each resolved user / e-mail address
     $subject = "{$applicationname}: {$resourcename}";
     if ($fromusername == "") {
         $fromusername = $applicationname;
     }
     // fromusername is used for describing the sender's name inside the email
     if ($from_name == "") {
         $from_name = $applicationname;
     }
     // from_name is for the email headers, and needs to match the email address (app name or user name)
     $message = str_replace(array("\\n", "\\r", "\\"), array("\n", "\r", ""), $message);
     #	Commented 'no message' line out as formatted oddly, and unnecessary.
     #	if ($message==""){$message=$lang['nomessage'];}
     $resolve_open_access = false;
     for ($n = 0; $n < count($emails); $n++) {
         $key = "";
         # Do we need to add an external access key for this user (e-mail specified rather than username)?
         if ($key_required[$n] 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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