前端日历添加记事功能_通过添加实验室功能从Google日历中获取更多信息

前端日历添加记事功能

前端日历添加记事功能

google_calendar_labs_top

Recently we took a look at how you can take Gmail further by enabling some of the extra features that are available in the experimental Labs section. If you use Google Calendar to manage your schedule, there are numerous tools and options that can be added through the use of Calendar-specific Labs. Today, we will take a look to see just what’s available.

最近,我们研究了如何通过启用“实验实验室”部分中提供的一些额外功能来进一步推广Gmail 。 如果您使用Google日历管理日程安排,则可以通过使用特定于日历的实验室来添加许多工具和选项。 今天,我们将看看有什么可用。

Just as with Gmail, Google Calendar Labs can be accessed through Settings. Unlike Gmail, you can jump straight to Labs rather than have to navigate through other settings first. Click the gear icon to the upper right of the Calendar page and select Labs from the menu before browsing through the list of what’s available.

与Gmail一样,可以通过“设置”访问Google日历实验室。 与Gmail不同,您可以直接跳至实验室,而不必先浏览其他设置。 单击日历页面右上角的齿轮图标,然后从菜单中选择实验室,然后浏览可用列表。

google_calendar_labs_1

There are far fewer Labs to explore for Calendar, but that does not diminish their value – there are some real gems to be found here. Out of the box Calendar is easy enough to use and a valuable addition to your time management, but there is always room for improvement.

探索日历的实验室少得多,但这并不会减少其价值-在这里可以找到一些真正的瑰宝。 开箱即用的日历易于使用,是您时间管理的重要补充,但总有改进的余地。

google_calendar_labs_2

管理提醒 (Manage Reminders)

Google Calendar is a great way to receive reminders about things you need to do, but the way notifications work can be annoying. If you are working in your web browser and a reminder notification appears, you will be moved away from the tab you were working.

Google日历是接收有关您需要做的事情的提醒的好方法,但是通知的工作方式可能很烦人。 如果您使用的是网络浏览器,并且出现提醒通知,那么您将离开您正在使用的选项卡。

It could be that you were in the middle of typing something, and if you happen to press Enter as the reminder appears you not only lose track of where you were, but also hide the reminder. This is where Gentle Reminders can help. Locate it in the Labs list, select Enable and then click Save at the top or bottom of the page.

可能是您正在输入某些内容,并且如果在提示出现时碰巧按Enter,则不仅会丢失您的位置,而且还会隐藏该提示。 这是温柔提醒可以提供帮助的地方。 在实验室列表中找到它,选择启用,然后单击页面顶部或底部的保存。

To configure options for the Lab feature, click the gear icon to the upper right of the calendar, select Settings and then scroll down the page to the ‘Gentle reminders (labs)’ section.

要配置“实验室”功能的选项,请点击日历右上方的齿轮图标,选择设置,然后向下滚动页面至“温和提醒(实验室)”部分。

google_calendar_labs_3

By default the Google Calendar tab will flash in your browser with the feature enabled, but if you use Chrome you have the option to enable desktop notifications. Click the ‘Allow Chrome desktop notifications’ and then click Allow.

默认情况下,启用了该功能的Google日历标签会在您的浏览器中闪烁,但是如果您使用Chrome浏览器,则可以选择启用桌面通知。 点击“允许Chrome桌面通知”,然后点击允许。

导航更轻松 (Easier Navigation)

If you are the sort of person who plans events long into the future, the way Calendar forces you to navigate through dates can be quite irksome. Enable the ‘Jump to date’ feature and you will gain an extra panel to the right hand side of the page which can be used to quickly, well, jump to any date.

如果您是那种计划未来很长一段时间的事件的人,那么Calendar迫使您浏览日期的方式可能会很讨厌。 启用“跳至日期”功能,您将在页面右侧获得一个额外的面板,该面板可用于快速,良好地跳转到任何日期。

google_calendar_labs_4

Equally useful is the Year View add-on which can be accessed through the same sidebar. You may find that the default day, week and month views are too restrictive but here you can see the year at a glance. Type a year, hit Go and you can check what day it is on November 3rd 2015 (it’s a Tuesday, by the way) and also jump quickly to that date.

同样有用的是可以通过同一边栏访问的Year View加载项。 您可能会发现默认的日,周和月视图过于严格,但是您可以在此处一目了然地看到年份。 输入年份,按Go键,您可以查看2015年11月3日是星期几(顺便说一下,这是星期二),并且还可以快速跳转到该日期。

google_calendar_labs_5

时间管理 (Time Management)

Taking a couple of weeks off and don’t want to have to spend time declining and invitations sent to you that fall within this period? Enable ‘Automatically declining events’ and when you add your vacation to the calendar you will find that you have now set your availability to ‘Busy (decline invitations)’.

休假两周,不想花时间下降,而在这段时间内发送给您的邀请是吗? 启用“自动拒绝事件”,将假期添加到日历后,您会发现您现在将可用性设置为“忙碌(拒绝邀请)”。

google_calendar_labs_6

There is no need to wait until your configured reminders are triggered, or to trawl through your calendar, to find out how long you have until your next appointment. Enable the appropriately named ‘Next meeting’ feature and you can see a countdown in the right-hand pane.

无需等待触发已配置的提醒,也无需拖延浏览日历,以了解距下一次约会的时间。 启用适当命名的“下一次会议”功能,您可以在右侧窗格中看到倒计时。

google_calendar_labs_7

其他值得注意的工具 (Other Noteworthy Tools)

It is a shame there are not more Labs add-ons available for Google Calendar. But while there are far fewer than there are for Gmail, there are still plenty that are likely to be of interest.

可惜没有更多的Google日历实验室附件可供使用。 但是尽管数量远远少于Gmail,但仍有很多可能引起人们的兴趣。

For anyone who works across multiple time zones, ‘World clock’ is a must. It adds to the side of the screen a customizable list of cities around the world complete with the local time. To make it even faster to see how a particular country’s time compares to yours, when it is night time a dark background is used.

对于跨多个时区工作的任何人,“世界时钟”都是必须的。 它在屏幕的一侧添加了可定制的世界各地城市列表,其中包含当地时间。 为了更快地查看特定国家/地区的时间与您的时间相比,晚上的时候使用深色背景。

google_calendar_labs_8

When you are collaborating on a project, ‘Event attachments’ enables you to attach files you have stored in Google Docs to your calendar events. ‘Free or busy’ lets you see if contacts who have shared their calendar with you are free at any given time.

在项目上进行协作时,可以使用“事件附件”将存储在Google文档中的文件附加到日历事件。 “忙/闲”可让您查看与您共享日历的联系人在任何给定时间是否空闲。

There are other add-ons for you to try as well, but these are some of the highlights. Share your thoughts in the comments below.

您也可以尝试其他附加组件,但这是其中的一些亮点。 在下面的评论中分享您的想法。

翻译自: https://www.howtogeek.com/137210/get-more-from-google-calendar-by-adding-labs-features/

前端日历添加记事功能

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,以下是一个简单的示例代码,可以让您开始实现类似Outlook日历功能: 1. 创建数据库表 首先,您需要创建一个数据库表来存储日程。您可以使用以下SQL语句在MySQL创建一个名为“events”的表: ``` CREATE TABLE events ( id INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(255) NOT NULL, date DATE NOT NULL, time TIME NOT NULL, description TEXT ); ``` 2. 显示日程 接下来,您可以使用以下PHP代码从数据库检索并显示所有的日程: ```php <?php // 连接到数据库 $conn = mysqli_connect("localhost", "username", "password", "database"); // 检索所有的日程 $sql = "SELECT * FROM events"; $result = mysqli_query($conn, $sql); // 显示每个日程 while ($row = mysqli_fetch_assoc($result)) { echo "<h3>{$row['title']}</h3>"; echo "<p>Date: {$row['date']}</p>"; echo "<p>Time: {$row['time']}</p>"; echo "<p>Description: {$row['description']}</p>"; } ?> ``` 这将从数据库检索所有的日程,并以标题、日期、时间和说明的形式显示出来。 3. 添加新日程 要添加新的日程,您可以使用以下PHP代码生成一个表单: ```php <form method="post" action="add_event.php"> <label>Title:</label> <input type="text" name="title"><br> <label>Date:</label> <input type="date" name="date"><br> <label>Time:</label> <input type="time" name="time"><br> <label>Description:</label> <textarea name="description"></textarea><br> <input type="submit" value="Add Event"> </form> ``` 当用户提交表单时,它将提交到一个名为“add_event.php”的PHP脚本,您可以在该脚本将新的日程插入到数据库: ```php <?php // 连接到数据库 $conn = mysqli_connect("localhost", "username", "password", "database"); // 获取表单数据 $title = mysqli_real_escape_string($conn, $_POST['title']); $date = mysqli_real_escape_string($conn, $_POST['date']); $time = mysqli_real_escape_string($conn, $_POST['time']); $description = mysqli_real_escape_string($conn, $_POST['description']); // 插入新的日程 $sql = "INSERT INTO events (title, date, time, description) VALUES ('$title', '$date', '$time', '$description')"; mysqli_query($conn, $sql); // 跳转回日程页面 header("Location: calendar.php"); ?> ``` 这将从表单获取新的日程数据,并将它们插入到数据库表。然后,用户将被重定向回日历页面。 4. 修改或删除日程 要修改或删除现有的日程,您可以使用类似的方法。例如,要修改日程,您可以生成一个表单,让用户编辑日程数据,并将其提交到一个PHP脚本,该脚本将更新数据库的相应记录。要删除日程,您可以生成一个链接或按钮,用户单击后将触发一个PHP脚本,该脚本将从数据库删除相应的记录。 希望这些代码可以帮助您开始实现类似Outlook日历功能!请注意,这只是一个简单的示例,您可能需要对其进行修改和扩展以满足您的具体需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值