[ Index ] |
PHP Cross Reference of Eventum |
[Summary view] [Print] [Text view]
1 <?php 2 /* vim: set expandtab tabstop=4 shiftwidth=4 encoding=utf-8: */ 3 // +----------------------------------------------------------------------+ 4 // | Eventum - Issue Tracking System | 5 // +----------------------------------------------------------------------+ 6 // | Copyright (c) 2003, 2004, 2005, 2006, 2007 MySQL AB | 7 // | | 8 // | This program is free software; you can redistribute it and/or modify | 9 // | it under the terms of the GNU General Public License as published by | 10 // | the Free Software Foundation; either version 2 of the License, or | 11 // | (at your option) any later version. | 12 // | | 13 // | This program is distributed in the hope that it will be useful, | 14 // | but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 // | GNU General Public License for more details. | 17 // | | 18 // | You should have received a copy of the GNU General Public License | 19 // | along with this program; if not, write to: | 20 // | | 21 // | Free Software Foundation, Inc. | 22 // | 59 Temple Place - Suite 330 | 23 // | Boston, MA 02111-1307, USA. | 24 // +----------------------------------------------------------------------+ 25 // | Authors: João Prado Maia <jpm@mysql.com> | 26 // +----------------------------------------------------------------------+ 27 // 28 // @(#) $Id: issue_auto_creation.php 3206 2007-01-24 20:24:35Z glen $ 29 // 30 require_once(dirname(__FILE__) . "/../init.php"); 31 require_once (APP_INC_PATH . "class.template.php"); 32 require_once (APP_INC_PATH . "class.auth.php"); 33 require_once (APP_INC_PATH . "class.user.php"); 34 require_once (APP_INC_PATH . "class.email_account.php"); 35 require_once (APP_INC_PATH . "class.category.php"); 36 require_once (APP_INC_PATH . "class.priority.php"); 37 require_once (APP_INC_PATH . "class.misc.php"); 38 require_once (APP_INC_PATH . "class.project.php"); 39 require_once (APP_INC_PATH . "class.setup.php"); 40 require_once (APP_INC_PATH . "db_access.php"); 41 42 $tpl = new Template_API(); 43 $tpl->setTemplate("manage/index.tpl.html"); 44 45 Auth::checkAuthentication(APP_COOKIE); 46 47 $tpl->assign("type", "issue_auto_creation"); 48 49 @$ema_id = $_POST["ema_id"] ? $_POST["ema_id"] : $_GET["ema_id"]; 50 51 $role_id = Auth::getCurrentRole(); 52 if (($role_id == User::getRoleID('administrator')) || ($role_id == User::getRoleID('manager'))) { 53 if ($role_id == User::getRoleID('administrator')) { 54 $tpl->assign("show_setup_links", true); 55 } 56 57 $prj_id = Email_Account::getProjectID($ema_id); 58 59 if (@$_POST["cat"] == "update") { 60 @Email_Account::updateIssueAutoCreation($ema_id, $_POST['issue_auto_creation'], $_POST['options']); 61 } 62 // load the form fields 63 $tpl->assign("info", Email_Account::getDetails($ema_id)); 64 $tpl->assign("cats", Category::getAssocList($prj_id)); 65 $tpl->assign("priorities", Priority::getList($prj_id)); 66 $tpl->assign("users", Project::getUserAssocList($prj_id, 'active')); 67 $tpl->assign("options", Email_Account::getIssueAutoCreationOptions($ema_id)); 68 $tpl->assign("ema_id", $ema_id); 69 $tpl->assign("prj_title", Project::getName($prj_id)); 70 $tpl->assign("uses_customer_integration", Customer::hasCustomerIntegration($prj_id)); 71 } else { 72 $tpl->assign("show_not_allowed_msg", true); 73 } 74 75 $tpl->displayTemplate();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 19 21:21:33 2007 | Cross-referenced by PHPXref 0.7 |