📄 groups.php
字号:
<?php/* Copyright Intermesh 2003 Author: Merijn Schering <mschering@intermesh.nl> Version: 1.0 Release date: 08 July 2003 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */require_once("../../Group-Office.php");$GO_SECURITY->authenticate();$GO_MODULES->authenticate('calendar');require_once($GO_LANGUAGE->get_language_file('calendar'));require_once($GO_MODULES->modules['calendar']['class_path'].'calendar.class.inc');$cal = new calendar();$link_back = (isset($_REQUEST['link_back']) && $_REQUEST['link_back'] != '') ? $_REQUEST['link_back'] : $_SERVER['REQUEST_URI'];$return_to = (isset($_REQUEST['return_to']) && $_REQUEST['return_to'] != '') ? $_REQUEST['return_to'] : $_SERVER['HTTP_REFERER'];$GO_HEADER['head'] = datatable::get_header();require_once($GO_THEME->theme_path."header.inc");$form = new form('groups_form');$form->add_html_element(new input('hidden', 'return_to', $return_to));$form->add_html_element(new input('hidden', 'link_back', $link_back));if (isset($feedback)){ $p = new html_element('p', $feedback); $p->set_attribute('class','Error'); $form->add_html_element($p);}$datatable = new datatable('groups_table');$datatable->set_attribute('style','width:100%');if($datatable->task == 'delete'){ foreach($datatable->selected as $group_id) { $cal->delete_group($group_id); }}$menu = new button_menu();if($GO_MODULES->write_permission){ $menu->add_button('groups',$cmdAdd,'group.php?return_to='.urlencode($link_back));}$menu->add_button('delete_big',$cmdDelete, $datatable->get_delete_handler());$menu->add_button('close',$cmdClose,$return_to);$form->add_html_element($menu);$datatable->add_column(new table_heading($strName));$cal->get_writable_resource_groups($GO_SECURITY->user_id);while ($cal->next_record()){ $row = new table_row($cal->f('id')); $row->set_attribute('ondblclick', "document.location='group.php?group_id=".$cal->f("id")."&return_to=".urlencode($link_back)."';"); $row->add_cell(new table_cell($cal->f("name"))); $datatable->add_row($row);}$form->add_html_element($datatable);echo $form->get_html();require_once($GO_THEME->theme_path."footer.inc");?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -