| [ PHPXref.com ] | [ Generated: Sun Jul 20 20:47:44 2008 ] | [ TUTOS 1.2 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Copyright 1999 - 2002 by Gero Kohnert 4 * 5 * vote for an appointment (execution) 6 * 7 * @modulegroup appointment 8 * @module app_do_vote 9 * @package appointment 10 */ 11 include_once 'webelements.p3'; 12 include_once 'permission.p3'; 13 include_once 'appointment.pinc'; 14 15 /* Check if user is allowed to use it */ 16 check_user(); 17 loadmodules('appointment','mod'); 18 19 /* Check the input */ 20 $msg = ""; 21 $a = new appointment($dbconn); 22 23 $gotourl = "calendar.php"; 24 if ( ! isset($_GET['id']) ) { 25 $msg .= "Missing Appointment ID<br>"; 26 } else { 27 $a = $a->read($_GET['id'],$a); 28 $a->read_participants(); 29 $gotourl= addUrlParameter($gotourl,"id=".$_GET['id']); 30 } 31 if ( ! isset($_GET['adr_id']) ) { 32 $msg .= "Missing User ID<br>"; 33 } 34 if ( ! isset($_GET['vote']) ) { 35 $msg .= "Missing Vote<br>"; 36 } 37 38 if ( $msg == "" ) { 39 $dbconn->Begin("WORK"); 40 $a->save_vote($_GET['vote'],$_GET['adr_id']); 41 $dbconn->Commit("WORK"); 42 } 43 $gotourl= addUrlParameter($gotourl,"msg=". UrlEncode($msg)); 44 45 /* Go back to calendar */ 46 Header("Status: 302 Moved Temporarily"); 47 Header("Location: ". getBaseUrl() . $gotourl); 48 $dbconn->Close(); 49 /* 50 * CVS Info: $Id: app_do_vote.php,v 1.9.6.1 2004/07/26 19:54:57 gokohnert Exp $ 51 * $Author: gokohnert $ 52 */ 53 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |