📄 statuses.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. *///load Group-Officerequire_once("../../Group-Office.php");//authenticate the user$GO_SECURITY->authenticate();//see if the user has access to this module//for this to work there must be a module named 'example'$GO_MODULES->authenticate('projects', true);//require the header file. This will draw the logo's and the menurequire_once($GO_THEME->theme_path."header.inc");echo '<form name="projects_form" method="post" action="'.$_SERVER['PHP_SELF'].'">';$sql = "SELECT * FROM pmStatuses ORDER BY id ASC";$datagrid = new datagrid('projects_form','pmStatuses', 'id', $sql);echo $datagrid->print_datagrid(array($strName));echo '</form>';?><script type="text/javascript"> var DropBox = opener.document.forms[0].status; DropBox.options.length=0; <?php require_once($GO_MODULES->class_path."projects.class.inc"); $projects = new projects(); $projects->get_statuses(); while($projects->next_record()) { echo "var opt = opener.document.createElement('option');"; echo "opt.text = '".addslashes($projects->f('name'))."';"; echo "opt.value = '".$projects->f('id')."';"; echo "DropBox.options[DropBox.options.length] = opt;"; } ?> </script><?phprequire_once($GO_THEME->theme_path."footer.inc");?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -