hey love it and will work and test but when making a T/c with it sends to openbeta.php i do not have this file where should it go as well your analytics is still listed i always say when you share that kinda stuff should be removed lol
also i will look in to where admin support goes and see if i can set up for default
(edit) on so i found where is goes and it should read open.php for me as well capta must be off for this to work but works Very well i also tested in android phone browser and looks good and works for me and posted T/c to system
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no" name="viewport">
<link href="test_files/style.css" rel="stylesheet" media="screen" type="text/css">
<script src="test_files/functions.js" type="text/javascript"></script>
<title>Purpis IT Support Ticket System
</title>
</head><body>
<div id="topbar">
<div id="title">
Create Support Ticket</div>
<div id="leftbutton">
<a href="http://support.purpisit.com/" class="noeffect">Help </a> </div>
</div>
<div id="content">
<span class="graytitle">Purpis IT Support System</span>
<ul class="pageitem">
<li class="textbox"><span class="header">Create Support Ticket</span>
<p>
Please Fill in all the required forms marked by an * and hit submit</p><br />
<form action="openbeta.php" method="POST" enctype="multipart/form-data">
</li>
<li class="menu"><span class="name">Name:
<input name="name" size="25" type="text" />
*
</span><span class="arrow"></span></a></li>
<li class="menu"><span class="name">Email:
<input name="email" size="25" type="text" />
* <span class="arrow"></span></span></li>
<li class="menu"><span class="name">Phone:
<input name="phone" size="24" type="text">
</span><span class="arrow"></span></a></li>
<li class="menu"><span class="arrow"></span></a><span class="name">Topic:</span><span class="name">
<select name="topicId">
<option value="" selected="selected">Select One</option>
<option value="3">Billing</option>
<option value="1">Support</option>
</select>
</span></li>
<li class="menu"><span class="name">Subject:
<input name="subject" size="23" type="text">
</span><span class="arrow"></span></a></li>
<li class="menu"><span class="name">Message</span><span class="name">
<input name="message" type="text" style="width: 90%;" value="" size="22" />
</span><span class="arrow"></span></a></li>
<li class="menu"><span class="name">Priority:
</span><span class="arrow"></span></a><span class="name">
<select name="pri">
<option value="1">Low</option>
<option value="2" selected="selected">Normal</option>
<option value="3">High</option>
</select>
</span></li>
<li class="menu"><span class="arrow"></span></a>
<input class="button" name="submit_x" value="Submit Ticket" type="submit" />
<input class="button" value="Reset" type="reset" />
<input class="button" name="cancel" value="Cancel" onclick='window.location.href="index.php"' type="button" />
</li>
<?php
/*********************************************************************
openbeta.php
New tickets handle.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2010 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
$Id: $
**********************************************************************/
require('client.inc.php');
define('SOURCE','Web'); //Ticket source.
$inc='open.inc.php'; //default include.
$errors=array();
if($_POST):
$_POST=$_POST=0; //Just Making sure we don't accept crap...only topicId is expected.
if(!$thisuser && $cfg->enableCaptcha()){
if(!$_POST)
$errors='Enter text shown on the image';
elseif(strcmp($_SESSION,md5($_POST)))
$errors='Invalid - try again!';
}
//Ticket:...checks for errors..
if(($ticket=Ticket:($_POST,$errors,SOURCE))){
$msg='Support ticket request created';
if($thisclient && $thisclient->isValid()) //Logged in...simply view the newly created ticket.
<USERMENTION username="header">@header</USERMENTION>('Location: tickets.php?id='.$ticket->getExtId());
//Thank the user and promise speedy resolution!
$inc='thankyou.inc.php';
}else{
$errors=$errors?$errors:'Unable to create a ticket. Please correct errors below and try again!';
}
endif;
//page
?>
<div id="footer">
Support by Purpis IT Solutions, Powered by iWebKit & OSticket</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script><script src="test_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-5510266-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body></html>
its been awhile since ive worked on this, its going to openbeta because i believe i have that set for the new page that needs to be formatted for mobile devices. i attached the code above, it is not complete though, this goes into the root of the osticket page. you can remove any google analytics code along with prob needing to modify the create support ticket link