Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git] / ng_selfservice / ticket_create.php
1 <? $title ='Create a new ticket'; include('elements/header.php'); ?>
2 <? $current_menu = 'ticket_create.php'; include('elements/menu.php'); ?>
3 <?
4
5 $customer_info = $freeside->customer_info_short( array(
6   'session_id' => $_COOKIE['session_id'],
7 ) );
8
9 if ( isset($customer_info['error']) && $customer_info['error'] ) {
10   $error = $customer_info['error'];
11   header('Location:index.php?error='. urlencode($error));
12   die();
13 }
14
15 //extract($customer_info);
16
17 $invoicing_list = preg_split('/\s*,\s*/', $customer_info['invoicing_list'] );
18 $requestor = $invoicing_list[0];
19
20 $error = $_GET['error'];
21
22 ?>
23
24     Please fill in both the subject and message.  Please provide as much information as possible.  This will enable us to help you quickly.
25     <br><br>
26
27     <? include('elements/error.php'); ?>
28
29     <FORM ACTION="process_ticket_create.php" METHOD=POST>
30     <table>
31         <tr>
32             <td>From</td>
33             <td><b><? echo htmlspecialchars($requestor) ?></b></td>
34         </tr>
35         <tr>
36             <td>Subject</td>
37             <td><input type="text" name="subject" size="54"></td>
38         </tr>
39         <tr>
40             <td valign="top">Message</td>
41             <td><textarea name="message" rows="16" cols="72"></textarea></td>
42         </tr>
43         <tr>
44             <td></td>
45             <td><input type="submit" value="Create"></td>
46         </tr>
47     </table>
48     </form> 
49
50 <? include('elements/menu_footer.php'); ?>
51 <? include('elements/footer.php'); ?>