Biggest push ever! :D Kinda made it possible to only need a few files in the inc/func of the drupal module, all others can be copied of the www version
--HG-- branch : quitta-gsoc-2013hg/feature/sse2
parent
a7cce8b94e
commit
8d8f53b2f2
@ -1,18 +1,18 @@
|
||||
{extends file="layout.tpl"}
|
||||
{block name=menu}
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php"><h5> Dashboard</h5></a></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}"><h5> Dashboard</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=show_user"><h5> Profile</h5></a></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_user"><h5> Profile</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=settings"><h5> Settings</h5></a></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=settings"><h5> Settings</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td width="10" align="center">|</td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=userlist"><h5> Users</h5></a></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=userlist"><h5> Users</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=show_queue&get=todo"><h5> Queues</h5></a></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_queue&get=todo"><h5> Queues</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=sgroup_list"><h5> Support Groups</h5></a></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=sgroup_list"><h5> Support Groups</h5></a></td>
|
||||
<td width="3"></td>
|
||||
{/block}
|
||||
|
||||
|
@ -1,101 +0,0 @@
|
||||
{block name=content}
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Create a new ticket</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<form id="changePassword" class="form-vertical" method="post" action="{$ingame_webpath}?page=createticket&id={$target_id}">
|
||||
<table cellspacing="3">
|
||||
<tr>
|
||||
<td valign="middle">Title: </td>
|
||||
<td>
|
||||
<input type="text" size="300" id="Title" name="Title">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle">Category: </td>
|
||||
<td>
|
||||
<select name="Category">
|
||||
{foreach from=$category key=k item=v}
|
||||
<option value="{$k}">{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle">Description:</td>
|
||||
<td><textarea cols="45" id="Content" name="Content"><br><br><br><br><br></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="function" value="create_ticket">
|
||||
<input type="hidden" name="target_id" value="{$target_id}">
|
||||
|
||||
<!-- Additional Ticket info-->
|
||||
{if $ingame}
|
||||
<input type="hidden" name="ShardId" value="{$ShardId}">
|
||||
<input type="hidden" name="UserPosition" value="{$UserPosition}">
|
||||
<input type="hidden" name="ViewPosition" value="{$ViewPosition}">
|
||||
<input type="hidden" name="ClientVersion" value="{$ClientVersion}">
|
||||
<input type="hidden" name="PatchVersion" value="{$PatchVersion}">
|
||||
<input type="hidden" name="ServerTick" value="{$ServerTick}">
|
||||
<input type="hidden" name="ConnectState" value="{$ConnectState}">
|
||||
<input type="hidden" name="LocalAddress" value="{$LocalAddress}">
|
||||
<input type="hidden" name="Memory" value="{$Memory}">
|
||||
<input type="hidden" name="OS" value="{$OS}">
|
||||
<input type="hidden" name="Processor" value="{$Processor}">
|
||||
<input type="hidden" name="CPUID" value="{$CPUID}">
|
||||
<input type="hidden" name="CpuMask" value="{$CpuMask}">
|
||||
<input type="hidden" name="HT" value="{$HT}">
|
||||
<input type="hidden" name="NeL3D" value="{$NeL3D}">
|
||||
<input type="hidden" name="UserId" value="{$UserId}">
|
||||
|
||||
{/if}
|
||||
<input type="submit" value="Send Ticket"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
||||
|
@ -1,81 +0,0 @@
|
||||
{block name=content}
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>{$home_title}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" cellpadding="3" border="2">
|
||||
<tr>
|
||||
<td width="25%" align = "center" ><font color="{$info_color}">Tickets Waiting for Direct Action</font></td>
|
||||
<td width="25%" align = "center" ><font color="{$info_color}">Tickets Todo</font></td>
|
||||
<td width="25%" align = "center" ><font color="{$info_color}">Newest Ticket</font></td>
|
||||
<td width="25%" align = "center" ><font color="{$info_color}">Total amount of Tickets</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="25%" align = "center" ><a href="{$ingame_webpath}?page=show_queue&get=create&userid={$user_id}&groupid=1&what=waiting_for_support&how=assigned&who=user"><font color="{$notification_color}">{$nrAssignedWaiting}</font></a></td>
|
||||
<td width="25%" align = "center" ><a href="{$ingame_webpath}?page=show_queue&get=todo"><font color="{$notification_color}">{$nrToDo}</font></a></td>
|
||||
<td width="25%" align = "center" ><a href="{$ingame_webpath}?page=show_ticket&id={$newestTicketId}"><font color="{$notification_color}">{$newestTicketTitle}</font></a></td>
|
||||
<td width="25%" align = "center" ><a href="{$ingame_webpath}?page=show_queue&get=all"><font color="{$notification_color}">{$nrTotalTickets}</font></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>{$home_info}</h3></p>
|
||||
<p> This is the GSOC project of Daan Janssens mentored by Matthew Lagoe.</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{/block}
|
||||
|
@ -1,81 +0,0 @@
|
||||
{config_load file="ams_lib.conf" section="setup"}
|
||||
|
||||
<PRE>
|
||||
|
||||
{* bold and title are read from the config file *}
|
||||
{if #bold#}<b>{/if}
|
||||
{* capitalize the first letters of each word of the title *}
|
||||
Title: {#title#|capitalize}
|
||||
{if #bold#}</b>{/if}
|
||||
|
||||
The current date and time is {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
|
||||
|
||||
The value of global assigned variable $SCRIPT_NAME is {$SCRIPT_NAME}
|
||||
|
||||
Example of accessing server environment variable SERVER_NAME: {$smarty.server.SERVER_NAME}
|
||||
|
||||
The value of {ldelim}$Name{rdelim} is <b>{$Name}</b>
|
||||
|
||||
variable modifier example of {ldelim}$Name|upper{rdelim}
|
||||
|
||||
<b>{$Name|upper}</b>
|
||||
|
||||
|
||||
An example of a section loop:
|
||||
|
||||
{section name=outer
|
||||
loop=$FirstName}
|
||||
{if $smarty.section.outer.index is odd by 2}
|
||||
{$smarty.section.outer.rownum} . {$FirstName[outer]} {$LastName[outer]}
|
||||
{else}
|
||||
{$smarty.section.outer.rownum} * {$FirstName[outer]} {$LastName[outer]}
|
||||
{/if}
|
||||
{sectionelse}
|
||||
none
|
||||
{/section}
|
||||
|
||||
An example of section looped key values:
|
||||
|
||||
{section name=sec1 loop=$contacts}
|
||||
phone: {$contacts[sec1].phone}<br>
|
||||
fax: {$contacts[sec1].fax}<br>
|
||||
cell: {$contacts[sec1].cell}<br>
|
||||
{/section}
|
||||
<p>
|
||||
|
||||
testing strip tags
|
||||
{strip}
|
||||
<table border=0>
|
||||
<tr>
|
||||
<td>
|
||||
<A HREF="{$SCRIPT_NAME}">
|
||||
<font color="red">This is a test </font>
|
||||
</A>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
</PRE>
|
||||
|
||||
This is an example of the html_select_date function:
|
||||
|
||||
<form>
|
||||
{html_select_date start_year=1998 end_year=2010}
|
||||
</form>
|
||||
|
||||
This is an example of the html_select_time function:
|
||||
|
||||
<form>
|
||||
{html_select_time use_24_hours=false}
|
||||
</form>
|
||||
|
||||
This is an example of the html_options function:
|
||||
|
||||
<form>
|
||||
<select name=states>
|
||||
{html_options values=$option_values selected=$option_selected output=$option_output}
|
||||
</select>
|
||||
</form>
|
||||
|
||||
{include file="footer.tpl"}
|
@ -1,34 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Ryzom Account Management System</title>
|
||||
<meta name="description" content="ryzom,ams">
|
||||
<meta name="author" content="Daan Janssens & Matthew Lagoe">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#00000000">
|
||||
|
||||
<table width="100%" cellspacing="1">
|
||||
<tr><td bgcolor="#000000">
|
||||
<table width="100%" cellspacing="2">
|
||||
<tr><td height="3"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td width="3"></td>
|
||||
{block name=menu}{/block}
|
||||
<td width="50%"></td>
|
||||
</tr>
|
||||
<tr><td height="3"></td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
{block name=content}{/block}
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,19 +0,0 @@
|
||||
{extends file="layout.tpl"}
|
||||
{block name=menu}
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=dashboard"><h5> Dashboard</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_user"><h5> Profile</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=settings"><h5> Settings</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td width="10" align="center">|</td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=userlist"><h5> Users</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_queue&get=todo"><h5> Queues</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=sgroup_list"><h5> Support Groups</h5></a></td>
|
||||
<td width="3"></td>
|
||||
|
||||
{/block}
|
||||
|
@ -1,18 +0,0 @@
|
||||
{extends file="layout.tpl"}
|
||||
{block name=menu}
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}"><h5> Dashboard</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_user"><h5> Profile</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=settings"><h5> Settings</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td width="10" align="center">|</td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=userlist"><h5> Users</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_queue&get=todo"><h5> Queues</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=sgroup_list"><h5> Support Groups</h5></a></td>
|
||||
<td width="3"></td>
|
||||
{/block}
|
||||
|
@ -1,13 +0,0 @@
|
||||
{extends file="layout.tpl"}
|
||||
{block name=menu}
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_user"><h5> Profile</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=settings"><h5> Settings</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td width="10" align="center">|</td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=createticket"><h5> Create New Ticket</h5></a></td>
|
||||
<td width="3"></td>
|
||||
|
||||
{/block}
|
||||
|
@ -1,39 +0,0 @@
|
||||
<p> </p>
|
||||
<table cellpadding = "10"><tr><td>
|
||||
<div class="alert alert-info">
|
||||
<h3>{$login_info}</h3>
|
||||
</div>
|
||||
<form method="post" action="{$ingame_webpath}?page=login" class="form-horizontal">
|
||||
<br/>
|
||||
<p>
|
||||
Username:
|
||||
<input type="text" value="" id="Username" name="Username" class="input-large span10" placeholder="Username">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Password:
|
||||
<input type="text" value="" id="Password" name="Password" class="input-large span10" placeholder="Password">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Remember me:
|
||||
<label for="remember" class="remember"><div class="checker" id="uniform-remember"><span><input type="checkbox" id="remember" style="opacity: 0;"></span></div>Remember me</label>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input type="hidden" name="function" value="login"/>
|
||||
<input type="submit" value="Login"/>
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
{if isset($login_error) and $login_error eq "TRUE"}
|
||||
<p>
|
||||
<strong><font color="red">{$login_error_message}</font></strong>
|
||||
</p>
|
||||
{/if}
|
||||
<p>
|
||||
<font color="green">{$login_register_message} <a href="{$ingame_webpath}?page=register">{$login_register_message_here}</a></font>!
|
||||
</p>
|
||||
</td></tr>
|
||||
</table>
|
@ -1,115 +0,0 @@
|
||||
{config_load file="ams_lib.conf" section="setup"}
|
||||
<div class="title">
|
||||
{$title}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{$welcome_message}
|
||||
</div>
|
||||
|
||||
<form name="Page1"
|
||||
method="post"
|
||||
>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="33%" {if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}class="error"{/if} id="caption-Username">{$username_tag} </td>
|
||||
|
||||
<td width="25%">
|
||||
<input type="text"
|
||||
name="Username"
|
||||
value="{if isset($Username)}{$Username}{/if}"
|
||||
maxlength="12"
|
||||
onfocus=
|
||||
"javascript:showTooltip('{$username_tooltip}', this);" />
|
||||
</td>
|
||||
|
||||
<td id="comment-Username" {if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($Username)}{$Username}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="33%" {if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-Password">{$password_tag}</td>
|
||||
|
||||
<td width="25%">
|
||||
<input type="password"
|
||||
name="Password"
|
||||
value=""
|
||||
maxlength="20"
|
||||
onkeyup=
|
||||
"testPassword(document.Page1.Password.value, 'comment-Password')"
|
||||
onfocus="javascript:showTooltip('{$password_message}', this);" />
|
||||
</td>
|
||||
|
||||
<td id="comment-Password" {if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}{$Password}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="33%" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-ConfirmPass">{$cpassword_tag}</td>
|
||||
|
||||
<td width="25%"><input type="password"
|
||||
name="ConfirmPass"
|
||||
value=""
|
||||
maxlength="20"
|
||||
onfocus="javascript:showTooltip('{$cpassword_message}', this);" />
|
||||
</td>
|
||||
|
||||
<td id="comment-ConfirmPass" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}{$ConfirmPass}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="33%" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-Email">{$email_tag}</td>
|
||||
|
||||
<td width="25%">
|
||||
<input type="text"
|
||||
name="Email"
|
||||
value=""
|
||||
maxlength="255"
|
||||
onfocus=
|
||||
"javascript:showTooltip('{$email_message}', this);" />
|
||||
</td>
|
||||
|
||||
<td id="comment-Email" {if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}{$Email}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width=
|
||||
"33%" {if isset($TAC_ERROR) && $TAC_ERROR eq "TRUE"}class="error"{/if}
|
||||
colspan="2"><input type="checkbox"
|
||||
name="TaC"
|
||||
value="1"
|
||||
onfocus="javascript:showTooltip('', this);" /><span id=
|
||||
"caption-TaC">{$tac_tag}</span></td>
|
||||
<td id="comment-TaC" {if isset($TAC_ERROR) && $TAC_ERROR eq "TRUE"}class="error"{/if} width="42%">{$tac_message}</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="c1">
|
||||
<input type="submit"
|
||||
name="Submit"
|
||||
value="Continue" />
|
||||
</div>
|
||||
<input type="hidden" name="function" value="add_user">
|
||||
</form>
|
||||
|
||||
<div id="signupTooltip"
|
||||
class="c2"
|
||||
inset=""></div>
|
||||
|
||||
<div id="tooltip-Username">
|
||||
{$username_tooltip}
|
||||
</div>
|
||||
|
||||
|
||||
<div id="tooltip-Password">
|
||||
{$password_message}
|
||||
</div>
|
||||
|
||||
<div id="tooltip-ConfirmPass">
|
||||
{$cpassword_message}
|
||||
</div>
|
||||
|
||||
<div id="tooltip-Email">
|
||||
{$email_message}
|
||||
</div>
|
||||
|
||||
<div id="tooltip-TaC"></div>
|
@ -1,146 +0,0 @@
|
||||
{block name=content}
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Support Groups</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Add a Support group</h3></p>
|
||||
|
||||
<form id="addSGroup" class="form-vertical" method="post" action="{$ingame_webpath}">
|
||||
<table cellpadding="1">
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="middle">Group name: </td>
|
||||
<td><input type="text" maxlength="20" size="180" id="Name" name="Name"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">Group Tag: </td>
|
||||
<td><input type="text" maxlength="4" size="180" id="Tag" name="Tag"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">Group EmailAddress: </td>
|
||||
<td><input type="text" id="GroupEmail" size="180" name="GroupEmail"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width=10></td>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="middle">IMAP MailServer IP: </td>
|
||||
<td><input type="text" id="IMAP_MailServer" size="180" name="IMAP_MailServer"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Username: </td>
|
||||
<td><input type="text" id="IMAP_Username" size="180" name="IMAP_Username"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Password: </td>
|
||||
<td><input type="text" id="IMAP_Password" size="180" name="IMAP_Password"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="function" value="add_sgroup">
|
||||
<p><input type="submit" value="Add Group" /></p>
|
||||
|
||||
|
||||
{if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SUCCESS"}
|
||||
<p>
|
||||
<font color="green">{$group_success}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "NAME_TAKEN"}
|
||||
<p>
|
||||
<font color="red">{$group_name_taken}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "TAG_TAKEN"}
|
||||
<p>
|
||||
<font color="red">{$group_tag_taken}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SIZE_ERROR"}
|
||||
<p>
|
||||
<font color="red">{$group_size_error}</font>
|
||||
</p>
|
||||
{/if}
|
||||
</form>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
{/if}
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellspacing="10">
|
||||
<tr><td>
|
||||
<p><h3>All groups</h3></p>
|
||||
<table cellpadding="4">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Name</td>
|
||||
<td>Tag</td>
|
||||
<td>Email</td>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td>Action</td>{/if}
|
||||
</tr>
|
||||
|
||||
{foreach from=$grouplist item=group}
|
||||
<tr>
|
||||
<td>{$group.sGroupId}</td>
|
||||
<td><a href ="{$ingame_webpath}?page=show_sgroup&id={$group.sGroupId}">{$group.name}</a></td>
|
||||
<td class="center"><span class="label label-important" >{$group.tag}</span></td>
|
||||
<td class="center">{$group.groupemail}</td>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td class="center"><a href="{$ingame_webpath}?page=sgroup_list&delete={$group.sGroupId}"><font color="red">Delete</font></a></td>{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
@ -1,222 +0,0 @@
|
||||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=todo">Todo tickets</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=all">All tickets</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=all_open">All open tickets</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=archive">Ticket Archive</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=not_assigned">Not Assigned Tickets</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Ticket Queue: {$queue_view}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table width="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Tickets</h3></p>
|
||||
<p>
|
||||
<form id="create_queue" method="post" action="{$ingame_webpath}?page=show_queue&get=create">
|
||||
<table width="100%" bgcolor="#00000060" border="1">
|
||||
<tr>
|
||||
<td width="5"></td>
|
||||
<td valign="middle"> Show </td>
|
||||
<td>
|
||||
<select size ="100" name="what">
|
||||
<option value="all" {if $prev_created_what eq "all"}selected="selected"{/if}>all</option>
|
||||
<option value="waiting_for_support" {if $prev_created_what eq "waiting_for_support"}selected="selected"{/if}>waiting for support</option>
|
||||
<option value="waiting_for_users" {if $prev_created_what eq "waiting_for_users"}selected="selected"{/if}>waiting for user</option>
|
||||
<option value="closed" {if $prev_created_what eq "closed"}selected="selected"{/if}>closed</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle"> tickets </td>
|
||||
<td>
|
||||
<select style="width: 110px;" name="how">
|
||||
<option value="assigned" {if $prev_created_how eq "assigned"}selected="selected"{/if}>assigned</option>
|
||||
<option value="not_assigned" {if $prev_created_how eq "not_assigned"}selected="selected"{/if}>not assigned</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle"> to </td>
|
||||
<td>
|
||||
<select style="width: 140px;" name="who" onchange="aimedforwhochanged(this.value);">
|
||||
<option value="user" {if $prev_created_who eq "user"}selected="selected"{/if}>user</option>
|
||||
<option value="support_group" {if $prev_created_who eq "support_group"}selected="selected"{/if}>Group</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle">:</td>
|
||||
<td>
|
||||
<select style="width: 140px;" name="userid">
|
||||
<option>select user</option>
|
||||
{foreach from=$teamlist item=member}
|
||||
<option value="{$member.tUserId}" {if $prev_created_userid eq $member.tUserId}selected="selected"{/if}>{$member.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle"> or </td>
|
||||
<td>
|
||||
<select style="width: 140px;" name="groupid">
|
||||
<option>select group</option>
|
||||
{foreach from=$grouplist item=group}
|
||||
<option value="{$group.sGroupId}" {if $prev_created_groupid eq $group.sGroupId}selected="selected"{/if}>{$group.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<input type="hidden" name="action" value="create_queue">
|
||||
<input type="submit" value="View"/>
|
||||
</td>
|
||||
<td width="30%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</p>
|
||||
<p>
|
||||
<table width="100%" cellpadding="4" cellspacing="2">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Title</td>
|
||||
<td>Assigned</td>
|
||||
<td>Timestamp</td>
|
||||
<td>Category</td>
|
||||
<td>Status</td>
|
||||
<td>SupportGroup</td>
|
||||
<td>Actions</td>
|
||||
</tr>
|
||||
{foreach from=$tickets item=ticket}
|
||||
<tr>
|
||||
<td>{$ticket.tId}</td>
|
||||
<td><a href ="{$ingame_webpath}?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></td>
|
||||
<td>{if $ticket.assignedText neq ""} <a href="{$ingame_webpath}?page=show_user&id={$ticket.assigned}">{$ticket.assignedText}</a>{else} {$not_assigned} {/if}</td>
|
||||
<td class="center"><span title="{$ticket.timestamp_elapsed}" data-rel="tooltip" data-placement="right">{$ticket.timestamp}</span></td>
|
||||
<td class="center">{$ticket.category}</td>
|
||||
<td class="center">{if $ticket.status eq 0}<font color="green">{else if $ticket.status eq 1}<font color="orange">{else if $ticket.status eq 2}<font color="red">{/if}{$ticket.statusText}</font></td>
|
||||
<td class="center">
|
||||
|
||||
{if $ticket.forwardedGroupName eq "0"}
|
||||
{$public_sgroup}
|
||||
{else}
|
||||
<a href="{$ingame_webpath}?page=show_sgroup&id={$ticket.forwardedGroupId}">{$ticket.forwardedGroupName}</a>
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
<td>
|
||||
{if $ticket.assigned eq 0}
|
||||
<form id="assign_ticket" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_queue&get=todo" style="margin:0px 0px 0px;">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket.tId}">
|
||||
<input type="hidden" name="action" value="assignTicket">
|
||||
<input type="submit" value="Assign Ticket"/>
|
||||
</form>
|
||||
{else if $ticket.assigned eq $user_id}
|
||||
<form id="assign_ticket" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_queue&get=todo" style="margin:0px 0px 0px;">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket.tId}">
|
||||
<input type="hidden" name="action" value="unAssignTicket">
|
||||
<input type="submit" value="Remove Assign"/>
|
||||
</form>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td align = "center">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="{$pagination_base_link}&pagenum=1">«</a></td>
|
||||
{foreach from=$links item=link}
|
||||
<td {if $link == $currentPage}bgcolor="{$pagination_current_page_bg}"{/if}><a href="{$pagination_base_link}&pagenum={$link}">{$link}</a></td>
|
||||
{/foreach}
|
||||
<td><a href="{$pagination_base_link}&pagenum={$lastPage}">»</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
{if isset($ACTION_RESULT)}
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="1">
|
||||
<tr><td height="4"></td></tr>
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
{if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"}
|
||||
<p>
|
||||
<font color="green">{$success_assigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_UNASSIGNED"}
|
||||
<p>
|
||||
<font color="green">{$success_unassigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "ALREADY_ASSIGNED"}
|
||||
<p>
|
||||
<font color="red">{$ticket_already_assigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "NOT_ASSIGNED"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_assigned}</font>
|
||||
</p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="4"></td></tr>
|
||||
<table>
|
||||
</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
@ -1,88 +0,0 @@
|
||||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_log&id={$ticket_id}">Show Ticket Log</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Reply ID#{$reply_id} of Ticket <a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">#{$ticket_id}</a></h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Reply:</h3></p>
|
||||
<p>
|
||||
<table cellspacing="5">
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<font color="{$info_color}"> {$reply_timestamp}</font>
|
||||
{if $author_permission eq '1'}
|
||||
<span class="label label-success"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="white"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span>
|
||||
{else if $reply.permission gt '1'}
|
||||
<span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="{$team_color}"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span>
|
||||
{/if}</p>
|
||||
<p><pre>{$reply_content}</pre></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
||||
|
@ -1,171 +0,0 @@
|
||||
{block name=content}
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Support Group: {$groupsname}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Add user to the list</h3></p>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}
|
||||
<form id="addSGroup" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_sgroup&id={$target_id}">
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="middle">Username: </td>
|
||||
<td><input type="text" maxlength="15" id="Name" name="Name"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="function" value="add_user_to_sgroup">
|
||||
<input type="hidden" name="target_id" value="{$target_id}">
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Add user" />
|
||||
</p>
|
||||
|
||||
{if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SUCCESS"}
|
||||
<p>
|
||||
<font color="green">{$add_to_group_success}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "ALREADY_ADDED"}
|
||||
<p>
|
||||
<font color="red">{$user_already_added}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "GROUP_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$group_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "USER_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$user_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "NOT_MOD_OR_ADMIN"}
|
||||
<p>
|
||||
<font color="red">{$not_mod_or_admin}</font>
|
||||
</p>
|
||||
{/if}
|
||||
</form>
|
||||
{/if}
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>All members</h3></p>
|
||||
<table cellpadding="4">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Name</td>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td>Action</td>{/if}
|
||||
|
||||
</tr>
|
||||
{foreach from=$userlist item=user}
|
||||
<tr>
|
||||
<td>{$user.tUserId}</td>
|
||||
<td><a href ="{$ingame_webpath}?page=show_user&id={$user.tUserId}">{$user.name}</a></td>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td class="center"><a href="{$ingame_webpath}?page=show_sgroup&id={$target_id}&delete={$user.tUserId}"><font color="red">Delete</font></a></td>{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Mail settings</h3></p>
|
||||
<form id="modifyMailSGroup" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_sgroup&id={$target_id}">
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">Group Email: </td>
|
||||
<td><input type="text" id="GroupEmail" name="GroupEmail" size="220" value="{$groupemail}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Mail Server: </td>
|
||||
<td><input type="text" id="IMAP_MailServer" name="IMAP_MailServer" size="220" value="{$imap_mailserver}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Username: </td>
|
||||
<td><input type="text" id="IMAP_Username" name="IMAP_Username" size="220" value="{$imap_username}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Password: </td>
|
||||
<td><input type="text" id="IMAP_Password" size="220" name="IMAP_Password"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="function" value="modify_email_of_sgroup">
|
||||
<input type="hidden" name="target_id" value="{$target_id}">
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Update"/>
|
||||
</p>
|
||||
|
||||
{if isset($RESULT_OF_MODIFYING) and $RESULT_OF_MODIFYING eq "SUCCESS"}
|
||||
<p>
|
||||
<font color="green">{$modify_mail_of_group_success}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_MODIFYING) and $RESULT_OF_MODIFYING eq "EMAIL_NOT_VALID"}
|
||||
<p>
|
||||
<font color="red">{$email_not_valid}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_MODIFYING) and $RESULT_OF_MODIFYING eq "NO_PASSWORD"}
|
||||
<p>
|
||||
<font color="yellow">{$no_password_given}</font>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
</form>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
@ -1,285 +0,0 @@
|
||||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
{if isset($isMod) and $isMod eq "TRUE"}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_log&id={$ticket_tId}">Show Ticket Log</a></td>{/if}
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></td>
|
||||
{if $hasInfo}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_info&id={$ticket_tId}">Show Additional Info</a></td>{/if}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>[{$t_title}-#{$ticket_tId}] {$ticket_title}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="5" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr>
|
||||
<td><font color="{$info_color}">Submitted: </font>{$ticket_timestamp}</td>
|
||||
<td><font color="{$info_color}">Last Updated: </font>{$ticket_lastupdate}</td>
|
||||
<td><font color="{$info_color}">Status: </font>{if $ticket_status neq 3}<font color="green">Open</font>{/if} {if $ticket_status eq 3} <font color="red">{$ticket_statustext}</font>{else}{$ticket_statustext} {/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><font color="{$info_color}">Category: </font>{$ticket_category}</td>
|
||||
<td><font color="{$info_color}">Priority </font>{$ticket_prioritytext}</td>
|
||||
<td><font color="{$info_color}">Support Group: </font>
|
||||
<span class="label label-info">
|
||||
{if $ticket_forwardedGroupName eq "0"}
|
||||
{$public_sgroup}
|
||||
{else}
|
||||
<a href="{$ingame_webpath}?page=show_sgroup&id={$ticket_forwardedGroupId}"><font color="white">{$ticket_forwardedGroupName}</font></a>
|
||||
{/if}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><font color="{$info_color}">Assigned To: </font>{if $ticket_assignedTo neq ""} <a href="{$ingame_webpath}?page=show_user&id={$ticket_assignedTo}">{$ticket_assignedToText}</a>{else} {$not_assigned} {/if}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
{foreach from=$ticket_replies item=reply}
|
||||
<tr>
|
||||
<td {if $reply.permission gt '1'} {if $reply.hidden eq 0} bgcolor="{$team_reply_tbl_color}"{else if $reply.hidden eq 1} bgcolor="{$hidden_reply_tbl_color}"{/if}{/if}>
|
||||
<table cellpadding="3">
|
||||
<tr><td>
|
||||
<p>
|
||||
<font color="{$info_color}"> {$reply.timestamp}</font>
|
||||
{if $reply.permission eq '1'}
|
||||
<span class="label label-success"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
|
||||
{else if $reply.permission gt '1'}
|
||||
<span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="{$team_color}"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
|
||||
{/if}
|
||||
</p>
|
||||
<p><pre>{$reply.replyContent}</pre></p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{if $ticket_status eq 3}
|
||||
<tr>
|
||||
<td bgcolor="{$closed_tbl_color}">
|
||||
<table cellpadding="4">
|
||||
<tr><td>
|
||||
<p><pre><h4>[Ticket is closed]</h4></pre></p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<form id="reply" class="form-vertical" method="post" action="{$ingame_webpath}">
|
||||
<table cellpadding="4">
|
||||
<tr><td height="5"></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><h4>{$t_reply}:</h4></p>
|
||||
</td>
|
||||
</tr>
|
||||
{if $ticket_status neq 3}
|
||||
<tr>
|
||||
<td><textarea cols="50" id="Content" name="Content"><br><br><br></textarea></td>
|
||||
</tr>
|
||||
{if isset($isMod) and $isMod eq "TRUE"}
|
||||
<tr>
|
||||
<td><input type="checkbox" name="hidden">Hide reply for user.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
<tr>
|
||||
<td>
|
||||
{if isset($isMod) and $isMod eq "TRUE"}
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Change status to
|
||||
<select name="ChangeStatus">
|
||||
{foreach from=$statusList key=k item=v}
|
||||
<option value="{$k}">{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
Change priority to
|
||||
<select name="ChangePriority">
|
||||
{foreach from=$ticket_priorities key=k item=v}
|
||||
<option value="{$k}" {if $k eq $ticket_priority}selected="selected"{/if}>{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="function" value="reply_on_ticket">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket_id}">
|
||||
<input type="submit" value="{$t_send}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
{if isset($isMod) and $isMod eq "TRUE"}
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
Ticket Assigning:
|
||||
{if $ticket_assignedTo eq 0}
|
||||
<form id="assign_ticket" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket_tId}">
|
||||
<input type="hidden" name="action" value="assignTicket">
|
||||
<input type="submit" value="Assign Ticket"/>
|
||||
</form>
|
||||
{else if $ticket_assignedTo eq $user_id}
|
||||
<form id="assign_ticket" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket_tId}">
|
||||
<input type="hidden" name="action" value="unAssignTicket">
|
||||
<input type="submit"value="Remove Assign"/>
|
||||
</form>
|
||||
{/if}
|
||||
</p>
|
||||
{if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"}
|
||||
<p>
|
||||
<font color="green">{$success_assigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_UNASSIGNED"}
|
||||
<p>
|
||||
<font color="green">{$success_unassigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "ALREADY_ASSIGNED"}
|
||||
<p>
|
||||
<font color="red">{$ticket_already_assigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "NOT_ASSIGNED"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_assigned}</font>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Forward to Group:
|
||||
<form id="forward" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}" >
|
||||
<select name="group">
|
||||
<option></option>
|
||||
{foreach from=$sGroups key=k item=v}
|
||||
<option value="{$k}">{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
<input type="hidden" name="ticket_id" value="{$ticket_tId}">
|
||||
<input type="hidden" name="action" value="forward">
|
||||
<input type="submit"value="Forward"/>
|
||||
</form>
|
||||
</p>
|
||||
{if isset($ACTION_RESULT) and $ACTION_RESULT eq "INVALID_SGROUP"}
|
||||
<p>
|
||||
<font color="red">{$invalid_sgroup}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_FORWARDED"}
|
||||
<p>
|
||||
<font color="green">{$success_forwarded}</font>
|
||||
</p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
@ -1,168 +0,0 @@
|
||||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
{if isset($isMod) and $isMod eq "TRUE"}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_log&id={$ticket_id}">Show Ticket Log</a></td>{/if}
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Additional Info For Ticket <a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">[#{$ticket_id}]</a></h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="5" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<p><h3>Ingame related</h3></p>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr><td></td><td></td></tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/shard.png"/></td>
|
||||
<td><font color="{$info_color}">Shard ID: </font>{$shard_id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/user.png"/></td>
|
||||
<td><font color="{$info_color}">User_Id: </font>{$user_id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/position.png"/></td>
|
||||
<td><font color="{$info_color}">User Position: </font>{$user_position}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/view.png"/></td>
|
||||
<td><font color="{$info_color}">View Position: </font>{$view_position}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/client.png"/></td>
|
||||
<td><font color="{$info_color}">Client_Version: </font>{$client_version}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/patch.png"/></td>
|
||||
<td><font color="{$info_color}">Patch_Version: </font>{$patch_version}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/server.png"/></td>
|
||||
<td><font color="{$info_color}"> Server_Tick: </font>{$server_tick}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<p><h3>Hardware & Software related</h3></p>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr><td></td><td></td></tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/memory.png"/></td>
|
||||
<td><font color="{$info_color}">Memory: </font>{$memory}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/processor.png"/></td>
|
||||
<td><font color="{$info_color}">Processor: </font>{$processor}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/cpuid.png"/></td>
|
||||
<td><font color="{$info_color}">Cpu_Id: </font>{$cpu_id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/mask.png"/></td>
|
||||
<td><font color="{$info_color}">Cpu_Mask: </font>{$cpu_mask}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/ht.png"/></td>
|
||||
<td><font color="{$info_color}">HT: </font>{$ht}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/os.png"/></td>
|
||||
<td><font color="{$info_color}">OS: </font>{$os}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/nel.png"/></td>
|
||||
<td><font color="{$info_color}">NeL3D: </font>{$nel3d}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<p><h3>Network related</h3></p>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr><td></td><td></td></tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/connect.png"/></td>
|
||||
<td><font color="{$info_color}">Connect_State: </font>{$connect_state}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/local.png"/></td>
|
||||
<td><font color="{$info_color}">Local_Address: </font>{$local_address}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
@ -1,88 +0,0 @@
|
||||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Log of Ticket #{$ticket_id}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Title: <a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">{$ticket_title}</a></h3></p>
|
||||
<p>
|
||||
<table cellspacing="5">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Timestamp</td>
|
||||
<td>Query</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$ticket_logs item=log}
|
||||
<tr>
|
||||
<td>{$log.tLogId}</td>
|
||||
<td><span title="{$log.timestamp_elapsed}" data-rel="tooltip" data-placement="right">{$log.timestamp}</span></td>
|
||||
<td>{$log.query}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
@ -1,163 +0,0 @@
|
||||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=settings&id={$target_id}"><h7>Edit User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td>
|
||||
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
|
||||
{if $userPermission eq 1}
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
|
||||
{else if $userPermission eq 2 }
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
|
||||
{else if $userPermission eq 3 }
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td>
|
||||
{/if}
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Profile of {$target_name}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
|
||||
<p><h2>Info</h2></p>
|
||||
<table cellpadding="4">
|
||||
|
||||
<tr>
|
||||
<td><strong>Email:</strong></td>
|
||||
<td>{$mail}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Role:</strong></td>
|
||||
<td>
|
||||
{if $userPermission eq 1}<font color="{$user_color}">User</font>{/if}
|
||||
{if $userPermission eq 2}<font color="{$mod_color}">Moderator</font>{/if}
|
||||
{if $userPermission eq 3}<font color="{$admin_color}">Admin</font>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $firstName neq ""}
|
||||
<tr>
|
||||
<td><strong>Firstname:</strong></td>
|
||||
<td>{$firstName}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $lastName neq ""}
|
||||
<tr>
|
||||
<td><strong>LastName:</strong></td>
|
||||
<td>{$lastName}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $country neq ""}
|
||||
<tr>
|
||||
<td><strong>Country:</strong></td>
|
||||
<td>{$country}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $gender neq 0}
|
||||
<tr>
|
||||
<td><strong>Gender:</strong></td>
|
||||
{if $gender eq 1}
|
||||
<td><strong>♂</strong></td>
|
||||
{else if $gender eq 2}
|
||||
<td><strong>♀</strong></td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Tickets</h3></p>
|
||||
<table cellpadding="3">
|
||||
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Title</td>
|
||||
<td>Timestamp</td>
|
||||
<td>Category</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$ticketlist item=ticket}
|
||||
<tr>
|
||||
<td>{$ticket.tId}</td>
|
||||
<td><a href ="{$ingame_webpath}?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></td>
|
||||
<td class="center">{$ticket.timestamp}</td>
|
||||
<td class="center">{$ticket.category}</td>
|
||||
|
||||
<td class="center"><span class="label {if $ticket.status eq 0}label-success{else if $ticket.status eq 1}label-warning{else if $ticket.status eq 2}label-important{/if}">{if $ticket.status eq 0} <i class="icon-exclamation-sign icon-white"></i>{/if} {$ticket.statusText}</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
@ -1,96 +0,0 @@
|
||||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Members</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table width="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>All Acounts</h3></p>
|
||||
<table width="100%" cellpadding="4" cellspacing="2">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>Id</td>
|
||||
<td>Username</td>
|
||||
<td>Email</td>
|
||||
<td>Permission</td>
|
||||
<td>Action</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$userlist item=element}
|
||||
<tr>
|
||||
<td>{$element.id}</td>
|
||||
<td class="center"><a href="{$ingame_webpath}?page=show_user&id={$element.id}">{$element.username}</a></td>
|
||||
<td class="center">{$element.email}</td>
|
||||
{if $element.permission eq 1}<td class="center"><font color="{$user_color}">User</font></td>{/if}
|
||||
{if $element.permission eq 2}<td class="center"><font color="{$mod_color}">Moderator</font></td>{/if}
|
||||
{if $element.permission eq 3}<td class="center"><font color="{$admin_color}">Admin</font></td>{/if}
|
||||
<td class="center">
|
||||
<a href="{$ingame_webpath}?page=show_user&id={$element.id}">Show User</a>
|
||||
<a href="{$ingame_webpath}?page=settings&id={$element.id}">Edit User</a>
|
||||
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $element.id neq 1}
|
||||
{if $element.permission eq 1}
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=2">Make Moderator</a>
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=3">Make Admin</a>
|
||||
{else if $element.permission eq 2 }
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=1">Demote to User</a>
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=3">Make Admin</a>
|
||||
{else if $element.permission eq 3 }
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=1">Demote to User</a>
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=2">Demote to Moderator</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td align = "center">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="{$ingame_webpath}?page=userlist&pagenum=1">«</a></td>
|
||||
{foreach from=$links item=link}
|
||||
<td {if $link == $currentPage}bgcolor="{$pagination_current_page_bg}"{/if}><a href="{$ingame_webpath}?page=userlist&pagenum={$link}">{$link}</a></td>
|
||||
{/foreach}
|
||||
<td><a href="{$ingame_webpath}?page=userlist&pagenum={$lastPage}">»</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
@ -1,45 +0,0 @@
|
||||
<?php
|
||||
|
||||
function add_sgroup(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$name = filter_var($_POST['Name'],FILTER_SANITIZE_STRING);
|
||||
$inner_tag = filter_var($_POST['Tag'], FILTER_SANITIZE_STRING);
|
||||
$tag = "[" . $inner_tag . "]";
|
||||
$inner_tag = filter_var($_POST['Tag'], FILTER_SANITIZE_STRING);
|
||||
$groupemail = filter_var($_POST['GroupEmail'], FILTER_SANITIZE_STRING);
|
||||
$imap_mailserver = filter_var($_POST['IMAP_MailServer'], FILTER_SANITIZE_STRING);
|
||||
$imap_username = filter_var($_POST['IMAP_Username'], FILTER_SANITIZE_STRING);
|
||||
$imap_password = filter_var($_POST['IMAP_Password'], FILTER_SANITIZE_STRING);
|
||||
|
||||
$result['RESULT_OF_ADDING'] = Support_Group::createSupportGroup($name, $tag, $groupemail, $imap_mailserver, $imap_username, $imap_password);
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
//global $SITEBASE;
|
||||
//require($SITEBASE . '/inc/sgroup_list.php');
|
||||
//$result= array_merge($result, sgroup_list());
|
||||
//return helpers :: loadtemplate( 'sgroup_list', $result, true);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=sgroup_list");
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=sgroup_list");
|
||||
}
|
||||
exit;
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
<?php
|
||||
|
||||
function add_user_to_sgroup(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user'])) && isset($_POST['target_id'])){
|
||||
$name = filter_var($_POST['Name'],FILTER_SANITIZE_STRING);
|
||||
$id = filter_var($_POST['target_id'],FILTER_SANITIZE_NUMBER_INT);
|
||||
$user_id = WebUsers::getId($name);
|
||||
if ($user_id != ""){
|
||||
if (Ticket_User::constr_ExternId($user_id)->getPermission()>1){
|
||||
$result['RESULT_OF_ADDING'] = Support_Group::addUserToSupportGroup($user_id, $id);
|
||||
}else{
|
||||
$result['RESULT_OF_ADDING'] = "NOT_MOD_OR_ADMIN";
|
||||
}
|
||||
|
||||
}else{
|
||||
$result['RESULT_OF_ADDING'] = "USER_NOT_EXISTING";
|
||||
}
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
//global $SITEBASE;
|
||||
//require_once($SITEBASE . 'inc/show_sgroup.php');
|
||||
//$result= array_merge($result, show_sgroup());
|
||||
//helpers :: loadtemplate( 'show_sgroup', $result);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_sgroup&id=".$id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=".$id);
|
||||
}
|
||||
exit;
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,93 +0,0 @@
|
||||
<?php
|
||||
|
||||
function change_mail(){
|
||||
|
||||
try{
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if(isset($_POST['target_id'])){
|
||||
|
||||
|
||||
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
|
||||
if($_POST['target_id'] == $_SESSION['id']){
|
||||
$target_username = $_SESSION['user'];
|
||||
}else{
|
||||
$webUser = new WebUsers($_POST['target_id']);
|
||||
$target_username = $webUser->getUsername();
|
||||
}
|
||||
|
||||
$webUser = new WebUsers($_POST['target_id']);
|
||||
$reply = $webUser->checkEmail($_POST['NewEmail']);
|
||||
|
||||
global $SITEBASE;
|
||||
require_once($SITEBASE . '/inc/settings.php');
|
||||
$result = settings();
|
||||
|
||||
if ( $reply != "success" ){
|
||||
$result['EMAIL_ERROR'] = 'TRUE';
|
||||
}else{
|
||||
$result['EMAIL_ERROR'] = 'FALSE';
|
||||
}
|
||||
$result['prevNewEmail'] = filter_var($_POST["NewEmail"], FILTER_SANITIZE_EMAIL);
|
||||
|
||||
if ($reply== "success"){
|
||||
$status = WebUsers::setEmail($target_username, filter_var($_POST["NewEmail"], FILTER_SANITIZE_EMAIL) );
|
||||
if($status == 'ok'){
|
||||
$result['SUCCESS_MAIL'] = "OK";
|
||||
}else if($status == 'shardoffline'){
|
||||
$result['SUCCESS_MAIL'] = "SHARDOFF";
|
||||
}
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
$result['target_id'] = $_POST['target_id'];
|
||||
if(isset($_GET['id'])){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) && ($_POST['target_id'] != $_SESSION['id'])){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
}
|
||||
helpers :: loadtemplate( 'settings', $result);
|
||||
exit;
|
||||
|
||||
}else{
|
||||
$result['EMAIL'] = $reply;
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
$result['target_id'] = $_POST['target_id'];
|
||||
if(isset($_GET['id'])){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) && ($_POST['target_id'] != $_SESSION['id'])){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
}
|
||||
helpers :: loadtemplate( 'settings', $result);
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: permission denied!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: The form was not filled in correclty
|
||||
header("Location: index.php?page=settings");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: user is not logged in
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}catch (PDOException $e) {
|
||||
//go to error page or something, because can't access website db
|
||||
print_r($e);
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,88 +0,0 @@
|
||||
<?php
|
||||
|
||||
function change_password(){
|
||||
|
||||
try{
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if(isset($_POST['target_id'])){
|
||||
$adminChangesOther = false;
|
||||
//if target_id is the same as session id or is admin
|
||||
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
|
||||
if($_POST['target_id'] == $_SESSION['id']){
|
||||
$target_username = $_SESSION['user'];
|
||||
}else{
|
||||
$webUser = new WebUsers($_POST['target_id']);
|
||||
$target_username = $webUser->getUsername();
|
||||
//isAdmin is true when it's the admin, but the target_id != own id
|
||||
$adminChangesOther = true;
|
||||
$_POST["CurrentPass"] = "dummypass";
|
||||
}
|
||||
|
||||
$webUser = new WebUsers($_POST['target_id']);
|
||||
$params = Array( 'user' => $target_username, 'CurrentPass' => $_POST["CurrentPass"], 'NewPass' => $_POST["NewPass"], 'ConfirmNewPass' => $_POST["ConfirmNewPass"], 'adminChangesOther' => $adminChangesOther);
|
||||
$result = $webUser->check_change_password($params);
|
||||
if ($result == "success"){
|
||||
//edit stuff into db
|
||||
global $SITEBASE;
|
||||
require_once($SITEBASE . '/inc/settings.php');
|
||||
$succresult = settings();
|
||||
$status = WebUsers::setPassword($target_username, $_POST["NewPass"]);
|
||||
if($status == 'ok'){
|
||||
$succresult['SUCCESS_PASS'] = "OK";
|
||||
}else if($status == 'shardoffline'){
|
||||
$succresult['SUCCESS_PASS'] = "SHARDOFF";
|
||||
}
|
||||
$succresult['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$succresult['no_visible_elements'] = 'FALSE';
|
||||
$succresult['username'] = $_SESSION['user'];
|
||||
$succresult['target_id'] = $_POST['target_id'];
|
||||
helpers :: loadtemplate( 'settings', $succresult);
|
||||
exit;
|
||||
|
||||
}else{
|
||||
|
||||
$result['prevCurrentPass'] = filter_var($_POST["CurrentPass"], FILTER_SANITIZE_STRING);
|
||||
$result['prevNewPass'] = filter_var($_POST["NewPass"], FILTER_SANITIZE_STRING);
|
||||
$result['prevConfirmNewPass'] = filter_var($_POST["ConfirmNewPass"], FILTER_SANITIZE_STRING);
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
$result['target_id'] = $_POST['target_id'];
|
||||
|
||||
global $SITEBASE;
|
||||
require_once($SITEBASE . '/inc/settings.php');
|
||||
$settings = settings();
|
||||
|
||||
$result = array_merge($result,$settings);
|
||||
helpers :: loadtemplate( 'settings', $result);
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: permission denied!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: The form was not filled in correclty
|
||||
header("Location: index.php?page=settings");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: user is not logged in
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}catch (PDOException $e) {
|
||||
//go to error page or something, because can't access website db
|
||||
print_r($e);
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,58 +0,0 @@
|
||||
<?php
|
||||
|
||||
function create_ticket(){
|
||||
//if logged in
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
if(WebUsers::isLoggedIn() && isset($_SESSION['ticket_user'])){
|
||||
|
||||
if(isset($_POST['target_id'])){
|
||||
|
||||
//if target_id is the same as session id or is admin
|
||||
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
|
||||
|
||||
$category = filter_var($_POST['Category'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$title = filter_var($_POST['Title'], FILTER_SANITIZE_STRING);
|
||||
$content = filter_var($_POST['Content'], FILTER_SANITIZE_STRING);
|
||||
try{
|
||||
if($_POST['target_id'] == $_SESSION['id']){
|
||||
$author = unserialize($_SESSION['ticket_user'])->getTUserId();
|
||||
}else{
|
||||
$author= Ticket_User::constr_ExternId($_POST['target_id'])->getTUserId();
|
||||
}
|
||||
$ticket_id = Ticket::create_Ticket($title, $content, $category, $author, unserialize($_SESSION['ticket_user'])->getTUserId(),0, $_POST);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||
}
|
||||
exit;
|
||||
|
||||
}catch (PDOException $e) {
|
||||
//ERROR: LIB DB is not online!
|
||||
print_r($e);
|
||||
exit;
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: permission denied!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: The form was not filled in correclty
|
||||
header("Location: index.php?page=create_ticket");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: user is not logged in
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,41 +0,0 @@
|
||||
<?php
|
||||
|
||||
function login(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
try{
|
||||
$username = filter_var($_POST['Username'],FILTER_SANITIZE_STRING);
|
||||
$password = filter_var($_POST['Password'],FILTER_SANITIZE_STRING);
|
||||
$result = WebUsers::checkLoginMatch($username, $password);
|
||||
if( $result != "fail"){
|
||||
//handle successful login
|
||||
$_SESSION['user'] = $username;
|
||||
$_SESSION['id'] = $result['uid'];
|
||||
$_SESSION['ticket_user'] = serialize(Ticket_User::constr_ExternId($result['uid']));
|
||||
$user = new WebUsers($_SESSION['id']);
|
||||
$_SESSION['Language'] = $user->getLanguage();
|
||||
|
||||
//go back to the index page.
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header( 'Location: '. $INGAME_WEBPATH );
|
||||
}else{
|
||||
header( 'Location: '. $WEBPATH );
|
||||
}
|
||||
exit;
|
||||
}else{
|
||||
//handle login failure
|
||||
$result = Array();
|
||||
$result['login_error'] = 'TRUE';
|
||||
$result['no_visible_elements'] = 'TRUE';
|
||||
helpers :: loadtemplate( 'login', $result);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
}catch (PDOException $e) {
|
||||
//go to error page or something, because can't access website db
|
||||
print_r($e);
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
<?php
|
||||
|
||||
function modify_email_of_sgroup(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user'])) && isset($_POST['target_id'])){
|
||||
|
||||
$sgroupid = filter_var($_POST['target_id'],FILTER_SANITIZE_NUMBER_INT);
|
||||
$group = Support_Group::getGroup($sgroupid);
|
||||
$groupemail = filter_var($_POST['GroupEmail'],FILTER_SANITIZE_STRING);
|
||||
if(Users::validEmail($groupemail) || $groupemail == ""){
|
||||
$password = filter_var($_POST['IMAP_Password'],FILTER_SANITIZE_STRING);
|
||||
$group->setGroupEmail($groupemail);
|
||||
$group->setIMAP_MailServer(filter_var($_POST['IMAP_MailServer'],FILTER_SANITIZE_STRING));
|
||||
$group->setIMAP_Username(filter_var($_POST['IMAP_Username'],FILTER_SANITIZE_STRING));
|
||||
|
||||
//encrypt password!
|
||||
global $cfg;
|
||||
$crypter = new MyCrypt($cfg['crypt']);
|
||||
$enc_password = $crypter->encrypt($password);
|
||||
$group->setIMAP_Password($enc_password);
|
||||
$group->update();
|
||||
$result['RESULT_OF_MODIFYING'] = "SUCCESS";
|
||||
if($password == ""){
|
||||
$result['RESULT_OF_MODIFYING'] = "NO_PASSWORD";
|
||||
}
|
||||
}else{
|
||||
$result['RESULT_OF_MODIFYING'] = "EMAIL_NOT_VALID";
|
||||
}
|
||||
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
//global $SITEBASE;
|
||||
//require_once($SITEBASE . 'inc/show_sgroup.php');
|
||||
//$result= array_merge($result, show_sgroup());
|
||||
//helpers :: loadtemplate( 'show_sgroup', $result);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_sgroup&id=".$sgroupid);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=".$sgroupid);
|
||||
}
|
||||
exit;
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
<?php
|
||||
|
||||
function reply_on_ticket(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn() && isset($_POST['ticket_id'])){
|
||||
|
||||
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$target_ticket = new Ticket();
|
||||
$target_ticket->load_With_TId($ticket_id);
|
||||
|
||||
if(($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
|
||||
|
||||
try{
|
||||
$author = unserialize($_SESSION['ticket_user'])->getTUserId();
|
||||
if(isset($_POST['Content'])){
|
||||
$content = $_POST['Content'];
|
||||
}else{
|
||||
$content="";
|
||||
}
|
||||
$hidden = 0;
|
||||
if(isset($_POST['hidden']) && Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$hidden = 1;
|
||||
}
|
||||
Ticket::createReply($content, $author, $ticket_id, $hidden);
|
||||
|
||||
if(isset($_POST['ChangeStatus']) && isset($_POST['ChangePriority']) && Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$newStatus = filter_var($_POST['ChangeStatus'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$newPriority = filter_var($_POST['ChangePriority'], FILTER_SANITIZE_NUMBER_INT);
|
||||
Ticket::updateTicketStatusAndPriority($ticket_id,$newStatus, $newPriority, $author);
|
||||
}
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||
}
|
||||
exit;
|
||||
|
||||
}catch (PDOException $e) {
|
||||
//ERROR: LIB DB is not online!
|
||||
print_r($e);
|
||||
//header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
<?php
|
||||
|
||||
function change_permission(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if(ticket_user::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
|
||||
if(isset($_GET['user_id']) && isset($_GET['value']) && $_GET['user_id'] != 1 && $_GET['value'] < 4 ){
|
||||
$user_id = filter_var($_GET['user_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$value = filter_var($_GET['value'], FILTER_SANITIZE_NUMBER_INT);
|
||||
|
||||
Ticket_User::change_permission(Ticket_User::constr_ExternId($user_id)->getTUserId(), $value);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_user&id=".$user_id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_user&id=".$user_id);
|
||||
}
|
||||
exit;
|
||||
|
||||
|
||||
}else{
|
||||
//ERROR: GET PARAMS not given or trying to change admin
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_user&id=".$user_id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_user&id=".$user_id);
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
<?php
|
||||
|
||||
function createticket(){
|
||||
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
//in case user_id-GET param set it's value as target_id, if no user_id-param is given, use the session id.
|
||||
if(isset($_GET['user_id'])){
|
||||
|
||||
if(($_GET['user_id'] != $_SESSION['id']) && ( ! ticket_user::isMod(unserialize($_SESSION['ticket_user']))) ){
|
||||
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
|
||||
}else{
|
||||
//if user_id is given, then set it as the target_id
|
||||
$result['target_id'] = filter_var($_GET['user_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
}
|
||||
|
||||
}else{
|
||||
//set session_id as target_id
|
||||
$result['target_id'] = $_SESSION['id'];
|
||||
|
||||
|
||||
}
|
||||
if(Helpers::check_if_game_client()){
|
||||
//get all additional info, which is needed for adding the extra info page
|
||||
$result[] = $_GET;
|
||||
$result['ingame'] = true;
|
||||
}
|
||||
|
||||
|
||||
//create array of category id & names
|
||||
$catArray = Ticket_Category::getAllCategories();
|
||||
$result['category'] = Gui_Elements::make_table_with_key_is_id($catArray, Array("getName"), "getTCategoryId" );
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
<?php
|
||||
|
||||
function dashboard(){
|
||||
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
//is Mod
|
||||
if(ticket_user::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
|
||||
$result['nrToDo'] = Ticket_Queue_Handler::getNrOfTicketsToDo(unserialize($_SESSION['ticket_user'])->getTUserId());
|
||||
$result['nrAssignedWaiting'] = Ticket_Queue_Handler::getNrOfTicketsAssignedWaiting(unserialize($_SESSION['ticket_user'])->getTUserId());
|
||||
$result['nrTotalTickets'] = Ticket_Queue_Handler::getNrOfTickets();
|
||||
$ticket = Ticket_Queue_Handler::getNewestTicket();
|
||||
$result['newestTicketId'] = $ticket->getTId();
|
||||
$result['newestTicketTitle'] = $ticket->getTitle();
|
||||
$result['newestTicketAuthor'] = Ticket_User::get_username_from_id($ticket->getAuthor());
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
<?php
|
||||
|
||||
function login(){
|
||||
if ( helpers :: check_if_game_client () ){
|
||||
//check if you are logged in ingame.
|
||||
$result = Helpers::check_login_ingame();
|
||||
if( $result != "FALSE"){
|
||||
//handle successful login
|
||||
$_SESSION['user'] = $result['name'];
|
||||
$_SESSION['id'] = WebUsers::getId($result['name']);
|
||||
$_SESSION['ticket_user'] = serialize(Ticket_User::constr_ExternId($_SESSION['id']));
|
||||
//go back to the index page.
|
||||
header( 'Location: '.$INGAME_WEBPATH );
|
||||
exit;
|
||||
}
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $pageElements;
|
||||
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
function sgroup_list(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
|
||||
if(isset($_GET['delete']) && Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$delete_id = filter_var($_GET['delete'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['delete'] = Support_Group::deleteSupportGroup( $delete_id);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=sgroup_list");
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=sgroup_list");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isAdmin'] = "TRUE";
|
||||
}
|
||||
$result['grouplist'] = Gui_Elements::make_table(Support_Group::getGroups(), Array("getSGroupId","getName","getTag","getGroupEmail"), Array("sGroupId","name","tag","groupemail"));
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,153 +0,0 @@
|
||||
<?php
|
||||
|
||||
function show_queue(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in & queue id is given
|
||||
if(WebUsers::isLoggedIn() && isset($_GET['get'])){
|
||||
|
||||
if( Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
|
||||
//the default queue you want to see.
|
||||
$result['queue_view'] = filter_var($_GET['get'], FILTER_SANITIZE_STRING);
|
||||
$user_id = unserialize($_SESSION['ticket_user'])->getTUserId();
|
||||
$queueArray = array();
|
||||
$queue_handler = new Ticket_Queue_handler();
|
||||
|
||||
//Pagination Base Links
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$result['pagination_base_link'] = $INGAME_WEBPATH."?page=show_queue&get=".$result['queue_view'] ;
|
||||
}else{
|
||||
$result['pagination_base_link'] = $WEBPATH."?page=show_queue&get=".$result['queue_view'] ;
|
||||
}
|
||||
|
||||
//form url to keep the getters constant
|
||||
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$result['getURL'] = $INGAME_WEBPATH."?page=show_queue&get=" . $result['queue_view'];
|
||||
}else{
|
||||
$result['getURL'] = $WEBPATH."?page=show_queue&get=" . $result['queue_view'];
|
||||
}
|
||||
|
||||
if(isset($_GET['pagenum'])){
|
||||
$result['getURL'] = $result['getURL'] . "&pagenum=".$_GET['pagenum'];
|
||||
}
|
||||
|
||||
if(isset($_GET['get']) && ($_GET['get'] == "create") && isset($_GET['userid']) && isset($_GET['groupid']) && isset($_GET['what']) && isset($_GET['how']) && isset($_GET['who'])){
|
||||
$userid = filter_var($_GET['userid'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$groupid = filter_var($_GET['groupid'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$what = filter_var($_GET['what'], FILTER_SANITIZE_STRING);
|
||||
$how = filter_var($_GET['how'], FILTER_SANITIZE_STRING);
|
||||
$who = filter_var($_GET['who'], FILTER_SANITIZE_STRING);
|
||||
$queue_handler->CreateQueue($userid, $groupid, $what, $how, $who);
|
||||
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$result['pagination_base_link'] = $INGAME_WEBPATH."?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
}else{
|
||||
$result['pagination_base_link'] = $WEBPATH."?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
}
|
||||
|
||||
|
||||
$result['prev_created_userid'] = $userid;
|
||||
$result['prev_created_groupid'] = $groupid;
|
||||
$result['prev_created_what'] = $what;
|
||||
$result['prev_created_how'] = $how;
|
||||
$result['prev_created_who'] = $who;
|
||||
|
||||
$result['getURL'] = $result['getURL'] . "&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
|
||||
}
|
||||
|
||||
//if an action is set
|
||||
if(isset($_POST['action'])){
|
||||
switch($_POST['action']){
|
||||
case "assignTicket":
|
||||
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['ACTION_RESULT'] = Ticket::assignTicket($user_id, $ticket_id);
|
||||
break;
|
||||
|
||||
case "unAssignTicket":
|
||||
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['ACTION_RESULT'] = Ticket::unAssignTicket($user_id, $ticket_id);
|
||||
break;
|
||||
|
||||
case "create_queue":
|
||||
$userid = filter_var($_POST['userid'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$groupid = filter_var($_POST['groupid'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$what = filter_var($_POST['what'], FILTER_SANITIZE_STRING);
|
||||
$how = filter_var($_POST['how'], FILTER_SANITIZE_STRING);
|
||||
$who = filter_var($_POST['who'], FILTER_SANITIZE_STRING);
|
||||
$queue_handler->CreateQueue($userid, $groupid, $what, $how, $who);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$result['pagination_base_link'] = $INGAME_WEBPATH."?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
}else{
|
||||
$result['pagination_base_link'] = $WEBPATH."?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
}
|
||||
$result['prev_created_userid'] = $userid;
|
||||
$result['prev_created_groupid'] = $groupid;
|
||||
$result['prev_created_what'] = $what;
|
||||
$result['prev_created_how'] = $how;
|
||||
$result['prev_created_who'] = $who;
|
||||
$result['getURL'] = $result['getURL'] . "&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$queueArray = $queue_handler->getTickets($result['queue_view'], $user_id);
|
||||
|
||||
//pagination
|
||||
$result['links'] = $queue_handler->getPagination()->getLinks(5);
|
||||
$result['lastPage'] = $queue_handler->getPagination()->getLast();
|
||||
$result['currentPage'] = $queue_handler->getPagination()->getCurrent();
|
||||
|
||||
|
||||
//if queue_view is a valid parameter value
|
||||
if ($queueArray != "ERROR"){
|
||||
$result['tickets'] = Gui_Elements::make_table($queueArray, Array("getTId","getTitle","getTimestamp","getAuthor()->getExternId","getTicket_Category()->getName","getStatus","getStatusText","getAssigned","getForwardedGroupName","getForwardedGroupId"), Array("tId","title","timestamp","authorExtern","category","status","statusText","assigned","forwardedGroupName","forwardedGroupId"));
|
||||
$i = 0;
|
||||
foreach( $result['tickets'] as $ticket){
|
||||
$web_author = new WebUsers($ticket['authorExtern']);
|
||||
$result['tickets'][$i]['author'] = $web_author->getUsername();
|
||||
$web_assigned = new WebUsers($ticket['assigned']);
|
||||
$result['tickets'][$i]['assignedText'] = $web_assigned->getUsername();
|
||||
$result['tickets'][$i]['timestamp_elapsed'] = Gui_Elements::time_elapsed_string($ticket['timestamp']);
|
||||
$i++;
|
||||
}
|
||||
$result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
|
||||
|
||||
//Queue creator field info
|
||||
$result['grouplist'] = Gui_Elements::make_table(Support_Group::getGroups(), Array("getSGroupId","getName"), Array("sGroupId","name"));
|
||||
$result['teamlist'] = Gui_Elements::make_table(Ticket_User::getModsAndAdmins(), Array("getTUserId","getExternId"), Array("tUserId","externId"));
|
||||
$i = 0;
|
||||
foreach( $result['teamlist'] as $member){
|
||||
$web_teammember = new Webusers($member['externId']);
|
||||
$result['teamlist'][$i]['name'] = $web_teammember->getUsername();
|
||||
$i++;
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
|
||||
//ERROR: Doesn't exist!
|
||||
$_SESSION['error_code'] = "404";
|
||||
header("Location: ams?page=error");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
<?php
|
||||
|
||||
function show_reply(){
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn() && isset($_GET['id'])){
|
||||
|
||||
$result['reply_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$reply = new Ticket_Reply();
|
||||
$reply->load_With_TReplyId($result['reply_id']);
|
||||
|
||||
|
||||
$ticket = new Ticket();
|
||||
$ticket->load_With_TId($reply->getTicket());
|
||||
|
||||
if(( $ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId() && ! $reply->getHidden()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) )){
|
||||
$content = new Ticket_Content();
|
||||
$content->load_With_TContentId($reply->getContent());
|
||||
|
||||
$author = new Ticket_User();
|
||||
$author->load_With_TUserId($reply->getAuthor());
|
||||
|
||||
$result['hidden'] = $reply->getHidden();
|
||||
$result['ticket_id'] = $reply->getTicket();
|
||||
$result['reply_timestamp'] = $reply->getTimestamp();
|
||||
$result['author_permission'] = $author->getPermission();
|
||||
$result['reply_content'] = $content->getContent();
|
||||
$result['author'] = $author->getExternId();
|
||||
$webUser = new WebUsers($author->getExternId());
|
||||
$result['authorName'] = $webUser->getUsername();
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
<?php
|
||||
|
||||
function show_sgroup(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
if( isset($_GET['id'])){
|
||||
//['target_id'] holds the id of the group!
|
||||
$result['target_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
|
||||
if(isset($_GET['delete']) && Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$delete_id = filter_var($_GET['delete'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['delete'] = Support_Group::deleteUserOfSupportGroup( $delete_id, $result['target_id'] );
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_sgroup&id=" . $result['target_id']);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=" . $result['target_id']);
|
||||
}
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isAdmin'] = "TRUE";
|
||||
}
|
||||
|
||||
$group = Support_Group::getGroup($result['target_id']);
|
||||
$result['groupsname'] = $group->getName();
|
||||
$result['groupemail'] = $group->getGroupEmail();
|
||||
$result['imap_mailserver'] = $group->getIMAP_MailServer();
|
||||
$result['imap_username'] = $group->getIMAP_Username();
|
||||
$result['userlist'] = Gui_Elements::make_table(Support_Group::getAllUsersOfSupportGroup($result['target_id']), Array("getTUserId","getPermission","getExternId"), Array("tUserId","permission","externId"));
|
||||
$i = 0;
|
||||
foreach( $result['userlist'] as $user){
|
||||
$webuser = new Webusers($user['externId']);
|
||||
$result['userlist'][$i]['name'] = $webuser->getUsername();
|
||||
$i++;
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
|
||||
}else{
|
||||
|
||||
//ERROR: No page specified!
|
||||
$_SESSION['error_code'] = "404";
|
||||
header("Location: ams?page=error");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
<?php
|
||||
|
||||
function show_ticket(){
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn() && isset($_GET['id'])){
|
||||
|
||||
$result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
|
||||
$result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$target_ticket = new Ticket();
|
||||
$target_ticket->load_With_TId($result['ticket_id']);
|
||||
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'] ))){
|
||||
if(isset($_POST['action'])){
|
||||
switch($_POST['action']){
|
||||
case "forward":
|
||||
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$group_id = filter_var($_POST['group'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['ACTION_RESULT'] = Ticket::forwardTicket($result['user_id'], $ticket_id, $group_id);
|
||||
break;
|
||||
case "assignTicket":
|
||||
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['ACTION_RESULT'] = Ticket::assignTicket($result['user_id'] , $ticket_id);
|
||||
break;
|
||||
case "unAssignTicket":
|
||||
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['ACTION_RESULT'] = Ticket::unAssignTicket($result['user_id'], $ticket_id);
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) )){
|
||||
|
||||
$show_as_admin = false;
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$show_as_admin = true;
|
||||
}
|
||||
|
||||
$entire_ticket = Ticket::getEntireTicket( $result['ticket_id'],$show_as_admin);
|
||||
Ticket_Log::createLogEntry($result['ticket_id'],unserialize($_SESSION['ticket_user'])->getTUserId(), 3);
|
||||
$result['ticket_tId'] = $entire_ticket['ticket_obj']->getTId();
|
||||
$result['ticket_forwardedGroupName'] = $entire_ticket['ticket_obj']->getForwardedGroupName();
|
||||
$result['ticket_forwardedGroupId'] = $entire_ticket['ticket_obj']->getForwardedGroupId();
|
||||
$result['ticket_title'] = $entire_ticket['ticket_obj']->getTitle();
|
||||
$result['ticket_timestamp'] = $entire_ticket['ticket_obj']->getTimestamp();
|
||||
$result['ticket_status'] = $entire_ticket['ticket_obj']->getStatus();
|
||||
$result['ticket_author'] = $entire_ticket['ticket_obj']->getAuthor();
|
||||
$result['ticket_prioritytext'] = $entire_ticket['ticket_obj']->getPriorityText();
|
||||
$result['ticket_priorities'] = Ticket::getPriorityArray();
|
||||
$result['ticket_priority'] = $entire_ticket['ticket_obj']->getPriority();
|
||||
$result['ticket_statustext'] = $entire_ticket['ticket_obj']->getStatusText();
|
||||
$result['ticket_lastupdate'] = Gui_Elements::time_elapsed_string(Ticket::getLatestReply($result['ticket_id'])->getTimestamp());
|
||||
$result['ticket_category'] = $entire_ticket['ticket_obj']->getCategoryName();
|
||||
$webUser = new WebUsers(Assigned::getUserAssignedToTicket($result['ticket_tId']));
|
||||
$result['ticket_assignedToText'] = $webUser->getUsername();
|
||||
$result['ticket_assignedTo'] = Assigned::getUserAssignedToTicket($result['ticket_tId']);
|
||||
$result['ticket_replies'] = Gui_Elements::make_table($entire_ticket['reply_array'], Array("getTReplyId","getContent()->getContent","getTimestamp","getAuthor()->getExternId","getAuthor()->getPermission","getHidden"), Array("tReplyId","replyContent","timestamp","authorExtern","permission","hidden"));
|
||||
$i = 0;
|
||||
foreach( $result['ticket_replies'] as $reply){
|
||||
$webReplyUser = new WebUsers($reply['authorExtern']);
|
||||
$result['ticket_replies'][$i]['author'] = $webReplyUser->getUsername();
|
||||
$i++;
|
||||
}
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isMod'] = "TRUE";
|
||||
$result['statusList'] = Ticket::getStatusArray();
|
||||
$result['sGroups'] = Gui_Elements::make_table_with_key_is_id(Support_Group::getAllSupportGroups(), Array("getName"), "getSGroupId" );
|
||||
}
|
||||
$result['hasInfo'] = $target_ticket->hasInfo();
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
<?php
|
||||
|
||||
function show_ticket_info(){
|
||||
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn() && isset($_GET['id'])){
|
||||
|
||||
$result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$target_ticket = new Ticket();
|
||||
$target_ticket->load_With_TId($result['ticket_id']);
|
||||
|
||||
if( $target_ticket->hasInfo() && (($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) ))){
|
||||
$result['ticket_title'] = $target_ticket->getTitle();
|
||||
$result['ticket_author'] = $target_ticket->getAuthor();
|
||||
|
||||
$ticket_info = new Ticket_Info();
|
||||
$ticket_info->load_With_Ticket($result['ticket_id']);
|
||||
$result['shard_id'] = $ticket_info->getShardId();
|
||||
$result['user_position'] = $ticket_info->getUser_Position();
|
||||
$result['view_position'] = $ticket_info->getView_Position();
|
||||
$result['client_version'] = $ticket_info->getClient_Version();
|
||||
$result['patch_version'] = $ticket_info->getPatch_Version();
|
||||
$result['server_tick'] = $ticket_info->getServer_Tick();
|
||||
$result['connect_state'] = $ticket_info->getConnect_State();
|
||||
$result['local_address'] = $ticket_info->getLocal_Address();
|
||||
$result['memory'] = $ticket_info->getMemory();
|
||||
$result['os'] = $ticket_info->getOS();
|
||||
$result['processor'] = $ticket_info->getProcessor();
|
||||
$result['cpu_id'] = $ticket_info->getCPUId();
|
||||
$result['cpu_mask'] = $ticket_info->getCPU_Mask();
|
||||
$result['ht'] = $ticket_info->getHT();
|
||||
$result['nel3d'] = $ticket_info->getNel3D();
|
||||
$result['user_id'] = $ticket_info->getUser_Id();
|
||||
global $IMAGELOC_WEBPATH;
|
||||
$result['IMAGELOC_WEBPATH'] = $IMAGELOC_WEBPATH;
|
||||
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
<?php
|
||||
|
||||
function show_ticket_log(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn() && isset($_GET['id'])){
|
||||
//only allow admins to browse the log!
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
|
||||
$result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$target_ticket = new Ticket();
|
||||
$target_ticket->load_With_TId($result['ticket_id']);
|
||||
$result['ticket_title'] = $target_ticket->getTitle();
|
||||
$ticket_logs = Ticket_Log::getLogsOfTicket( $result['ticket_id']);
|
||||
$log_action_array = Ticket_Log::getActionTextArray();
|
||||
$result['ticket_logs'] = Gui_Elements::make_table($ticket_logs, Array("getTLogId","getTimestamp","getAuthor()->getExternId","getAction","getArgument()"), Array("tLogId","timestamp","authorExtern","action","argument"));
|
||||
$i = 0;
|
||||
foreach( $result['ticket_logs'] as $log){
|
||||
$webUser = new WebUsers($log['authorExtern']);
|
||||
$author = $webUser->getUsername();
|
||||
$result['ticket_logs'][$i]['author'] = $author;
|
||||
$query_backpart = "";
|
||||
if($log['action'] == 2){
|
||||
$webUser2 = new WebUsers($log['argument']);
|
||||
$query_backpart = $webUser2->getUsername();
|
||||
}else if($log['action'] == 4){
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$query_backpart = "<a href='".$INGAME_WEBPATH."?page=show_reply&id=" . $log['argument'] . "'>ID#" . $log['argument'] . "</a>";
|
||||
}else{
|
||||
$query_backpart = "<a href='".$WEBPATH."?page=show_reply&id=" . $log['argument'] . "'>ID#" . $log['argument'] . "</a>";
|
||||
}
|
||||
}else if($log['action'] == 5){
|
||||
$statusArray = Ticket::getStatusArray();
|
||||
$query_backpart = $statusArray[$log['argument'] ];
|
||||
}else if($log['action'] == 6){
|
||||
$priorityArray = Ticket::getPriorityArray();
|
||||
$query_backpart = $priorityArray[$log['argument'] ];
|
||||
}else if($log['action'] == 8){
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$query_backpart = "<a href='".$INGAME_WEBPATH."?page=show_sgroupy&id=" . $log['argument'] . "'>" . Support_Group::getGroup($log['argument'])->getName() . "</a>";
|
||||
}else{
|
||||
$query_backpart = "<a href='".$WEBPATH."?page=show_sgroupy&id=" . $log['argument'] . "'>" . Support_Group::getGroup($log['argument'])->getName() . "</a>";
|
||||
}
|
||||
}
|
||||
$result['ticket_logs'][$i]['query'] = $author . " " . $log_action_array[$log['action']] . " " . $query_backpart;
|
||||
$result['ticket_logs'][$i]['timestamp_elapsed'] = Gui_Elements::time_elapsed_string($log['timestamp']);
|
||||
$i++;
|
||||
}
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
<?php
|
||||
|
||||
function userlist(){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
|
||||
$pagination = new Pagination(WebUsers::getAllUsersQuery(),"web",10,"WebUsers");
|
||||
$pageResult['userlist'] = Gui_Elements::make_table($pagination->getElements() , Array("getUId","getUsername","getEmail"), Array("id","username","email"));
|
||||
$pageResult['links'] = $pagination->getLinks(5);
|
||||
$pageResult['lastPage'] = $pagination->getLast();
|
||||
$pageResult['currentPage'] = $pagination->getCurrent();
|
||||
|
||||
$i = 0;
|
||||
foreach( $pageResult['userlist'] as $user ){
|
||||
$pageResult['userlist'][$i]['permission'] = Ticket_User::constr_ExternId($pageResult['userlist'][$i]['id'])->getPermission();
|
||||
$i++;
|
||||
}
|
||||
|
||||
if (Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$pageResult['isAdmin'] = "TRUE";
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$pageResult['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $pageResult;
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
<?php include('header.php'); ?>
|
||||
|
||||
|
||||
<div>
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<a href="#">Home</a> <span class="divider">/</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Blank</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span12">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-picture"></i>Blank</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
</div><!--/row-->
|
||||
|
||||
|
||||
<?php include('footer.php'); ?>
|
@ -1,45 +0,0 @@
|
||||
<?php include('header.php'); ?>
|
||||
|
||||
<div>
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<a href="#">Home</a> <span class="divider">/</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Calendar</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span12">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-calendar"></i>Calendar</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div id="external-events" class="well">
|
||||
<h4>Draggable Events</h4>
|
||||
<div class="external-event badge">Default</div>
|
||||
<div class="external-event badge badge-success">Completed</div>
|
||||
<div class="external-event badge badge-warning">Warning</div>
|
||||
<div class="external-event badge badge-important">Important</div>
|
||||
<div class="external-event badge badge-info">Info</div>
|
||||
<div class="external-event badge badge-inverse">Other</div>
|
||||
<p>
|
||||
<label for="drop-remove"><input type="checkbox" id="drop-remove" /> remove after drop</label>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="calendar"></div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/row-->
|
||||
|
||||
<?php include('footer.php'); ?>
|
@ -1,120 +0,0 @@
|
||||
<?php include('header.php'); ?>
|
||||
|
||||
|
||||
<div>
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<a href="#">Home</a> <span class="divider">/</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Charts</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header well">
|
||||
<h2><i class="icon-list-alt"></i> Chart with points</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div id="sincos" class="center" style="height:300px" ></div>
|
||||
<p id="hoverdata">Mouse position at (<span id="x">0</span>, <span id="y">0</span>). <span id="clickdata"></span></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header well">
|
||||
<h2><i class="icon-list-alt"></i> Flot</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div id="flotchart" class="center" style="height:300px"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="box-header well">
|
||||
<h2><i class="icon-list-alt"></i> Stack Example</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div id="stackchart" class="center" style="height:300px;"></div>
|
||||
|
||||
<p class="stackControls center">
|
||||
<input class="btn" type="button" value="With stacking">
|
||||
<input class="btn" type="button" value="Without stacking">
|
||||
</p>
|
||||
|
||||
<p class="graphControls center">
|
||||
<input class="btn btn-primary" type="button" value="Bars">
|
||||
<input class="btn btn-primary" type="button" value="Lines">
|
||||
<input class="btn btn-primary" type="button" value="Lines with steps">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!--/row-->
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-list-alt"></i> Pie</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div id="piechart" style="height:300px"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-list-alt"></i> Realtime</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div id="realtimechart" style="height:190px;"></div>
|
||||
<p>You can update a chart periodically to get a real-time effect by using a timer to insert the new data in the plot and redraw it.</p>
|
||||
<p>Time between updates: <input id="updateInterval" type="text" value="" style="text-align: right; width:5em"> milliseconds</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-list-alt"></i> Donut</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div id="donutchart" style="height: 300px;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/row-->
|
||||
|
||||
<?php include('footer.php'); ?>
|
@ -1,333 +0,0 @@
|
||||
<?php include('header.php'); ?>
|
||||
|
||||
|
||||
<div>
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<a href="#">Home</a> <span class="divider">/</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Forms</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span12">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-edit"></i> Form Elements</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<form class="form-horizontal">
|
||||
<fieldset>
|
||||
<legend>Datepicker, Autocomplete, WYSIWYG</legend>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="typeahead">Auto complete </label>
|
||||
<div class="controls">
|
||||
<input type="text" class="span6 typeahead" id="typeahead" data-provide="typeahead" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'>
|
||||
<p class="help-block">Start typing to activate auto complete!</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="date01">Date input</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="input-xlarge datepicker" id="date01" value="02/16/12">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="fileInput">File input</label>
|
||||
<div class="controls">
|
||||
<input class="input-file uniform_on" id="fileInput" type="file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="textarea2">Textarea WYSIWYG</label>
|
||||
<div class="controls">
|
||||
<textarea class="cleditor" id="textarea2" rows="3"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
<button type="reset" class="btn">Cancel</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
</div><!--/row-->
|
||||
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span12">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-edit"></i> Form Elements</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<form class="form-horizontal">
|
||||
<fieldset>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="focusedInput">Focused input</label>
|
||||
<div class="controls">
|
||||
<input class="input-xlarge focused" id="focusedInput" type="text" value="This is focused…">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Uneditable input</label>
|
||||
<div class="controls">
|
||||
<span class="input-xlarge uneditable-input">Some value here</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="disabledInput">Disabled input</label>
|
||||
<div class="controls">
|
||||
<input class="input-xlarge disabled" id="disabledInput" type="text" placeholder="Disabled input here…" disabled="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="optionsCheckbox2">Disabled checkbox</label>
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" id="optionsCheckbox2" value="option1" disabled="">
|
||||
This is a disabled checkbox
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group warning">
|
||||
<label class="control-label" for="inputWarning">Input with warning</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputWarning">
|
||||
<span class="help-inline">Something may have gone wrong</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group error">
|
||||
<label class="control-label" for="inputError">Input with error</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputError">
|
||||
<span class="help-inline">Please correct the error</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group success">
|
||||
<label class="control-label" for="inputSuccess">Input with success</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputSuccess">
|
||||
<span class="help-inline">Woohoo!</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="selectError3">Plain Select</label>
|
||||
<div class="controls">
|
||||
<select id="selectError3">
|
||||
<option>Option 1</option>
|
||||
<option>Option 2</option>
|
||||
<option>Option 3</option>
|
||||
<option>Option 4</option>
|
||||
<option>Option 5</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="selectError">Modern Select</label>
|
||||
<div class="controls">
|
||||
<select id="selectError" data-rel="chosen">
|
||||
<option>Option 1</option>
|
||||
<option>Option 2</option>
|
||||
<option>Option 3</option>
|
||||
<option>Option 4</option>
|
||||
<option>Option 5</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="selectError1">Multiple Select / Tags</label>
|
||||
<div class="controls">
|
||||
<select id="selectError1" multiple data-rel="chosen">
|
||||
<option>Option 1</option>
|
||||
<option selected>Option 2</option>
|
||||
<option>Option 3</option>
|
||||
<option>Option 4</option>
|
||||
<option>Option 5</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="selectError2">Group Select</label>
|
||||
<div class="controls">
|
||||
<select data-placeholder="Your Favorite Football Team" id="selectError2" data-rel="chosen">
|
||||
<option value=""></option>
|
||||
<optgroup label="NFC EAST">
|
||||
<option>Dallas Cowboys</option>
|
||||
<option>New York Giants</option>
|
||||
<option>Philadelphia Eagles</option>
|
||||
<option>Washington Redskins</option>
|
||||
</optgroup>
|
||||
<optgroup label="NFC NORTH">
|
||||
<option>Chicago Bears</option>
|
||||
<option>Detroit Lions</option>
|
||||
<option>Green Bay Packers</option>
|
||||
<option>Minnesota Vikings</option>
|
||||
</optgroup>
|
||||
<optgroup label="NFC SOUTH">
|
||||
<option>Atlanta Falcons</option>
|
||||
<option>Carolina Panthers</option>
|
||||
<option>New Orleans Saints</option>
|
||||
<option>Tampa Bay Buccaneers</option>
|
||||
</optgroup>
|
||||
<optgroup label="NFC WEST">
|
||||
<option>Arizona Cardinals</option>
|
||||
<option>St. Louis Rams</option>
|
||||
<option>San Francisco 49ers</option>
|
||||
<option>Seattle Seahawks</option>
|
||||
</optgroup>
|
||||
<optgroup label="AFC EAST">
|
||||
<option>Buffalo Bills</option>
|
||||
<option>Miami Dolphins</option>
|
||||
<option>New England Patriots</option>
|
||||
<option>New York Jets</option>
|
||||
</optgroup>
|
||||
<optgroup label="AFC NORTH">
|
||||
<option>Baltimore Ravens</option>
|
||||
<option>Cincinnati Bengals</option>
|
||||
<option>Cleveland Browns</option>
|
||||
<option>Pittsburgh Steelers</option>
|
||||
</optgroup>
|
||||
<optgroup label="AFC SOUTH">
|
||||
<option>Houston Texans</option>
|
||||
<option>Indianapolis Colts</option>
|
||||
<option>Jacksonville Jaguars</option>
|
||||
<option>Tennessee Titans</option>
|
||||
</optgroup>
|
||||
<optgroup label="AFC WEST">
|
||||
<option>Denver Broncos</option>
|
||||
<option>Kansas City Chiefs</option>
|
||||
<option>Oakland Raiders</option>
|
||||
<option>San Diego Chargers</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
<button class="btn">Cancel</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
</div><!--/row-->
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span12">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-edit"></i> Form Elements</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<form class="form-horizontal">
|
||||
<fieldset>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="prependedInput">Prepended text</label>
|
||||
<div class="controls">
|
||||
<div class="input-prepend">
|
||||
<span class="add-on">@</span><input id="prependedInput" size="16" type="text">
|
||||
</div>
|
||||
<p class="help-block">Here's some help text</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="appendedInput">Appended text</label>
|
||||
<div class="controls">
|
||||
<div class="input-append">
|
||||
<input id="appendedInput" size="16" type="text"><span class="add-on">.00</span>
|
||||
</div>
|
||||
<span class="help-inline">Here's more help text</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="appendedPrependedInput">Append and prepend</label>
|
||||
<div class="controls">
|
||||
<div class="input-prepend input-append">
|
||||
<span class="add-on">$</span><input id="appendedPrependedInput" size="16" type="text"><span class="add-on">.00</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="appendedInputButton">Append with button</label>
|
||||
<div class="controls">
|
||||
<div class="input-append">
|
||||
<input id="appendedInputButton" size="16" type="text"><button class="btn" type="button">Go!</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="appendedInputButtons">Two-button append</label>
|
||||
<div class="controls">
|
||||
<div class="input-append">
|
||||
<input id="appendedInputButtons" size="16" type="text"><button class="btn" type="button">Search</button><button class="btn" type="button">Options</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Checkboxes</label>
|
||||
<div class="controls">
|
||||
<label class="checkbox inline">
|
||||
<input type="checkbox" id="inlineCheckbox1" value="option1"> Option 1
|
||||
</label>
|
||||
<label class="checkbox inline">
|
||||
<input type="checkbox" id="inlineCheckbox2" value="option2"> Option 2
|
||||
</label>
|
||||
<label class="checkbox inline">
|
||||
<input type="checkbox" id="inlineCheckbox3" value="option3"> Option 3
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">File Upload</label>
|
||||
<div class="controls">
|
||||
<input type="file">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Radio buttons</label>
|
||||
<div class="controls">
|
||||
<label class="radio">
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked="">
|
||||
Option one is this and that—be sure to include why it's great
|
||||
</label>
|
||||
<div style="clear:both"></div>
|
||||
<label class="radio">
|
||||
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
|
||||
Option two can be something else and selecting it will deselect option one
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
<button class="btn">Cancel</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
</div><!--/row-->
|
||||
|
||||
<?php include('footer.php'); ?>
|
@ -1,41 +0,0 @@
|
||||
<?php include('header.php'); ?>
|
||||
|
||||
<div>
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<a href="#">Home</a> <span class="divider">/</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Gallery</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span12">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-picture"></i> Gallery</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<p class="center">
|
||||
<button id="toggle-fullscreen" class="btn btn-large btn-primary visible-desktop" data-toggle="button">Toggle Fullscreen</button>
|
||||
</p>
|
||||
<br/>
|
||||
<ul class="thumbnails gallery">
|
||||
<?php for($i=1;$i<=24;$i++) { ?>
|
||||
<li id="image-<?php echo $i ?>" class="thumbnail">
|
||||
<a style="background:url(img/gallery/thumbs/<?php echo $i ?>.jpg)" title="Sample Image <?php echo $i ?>" href="img/gallery/<?php echo $i ?>.jpg"><img class="grayscale" src="img/gallery/thumbs/<?php echo $i ?>.jpg" alt="Sample Image <?php echo $i ?>"></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
</div><!--/row-->
|
||||
|
||||
<?php include('footer.php'); ?>
|
@ -1,240 +0,0 @@
|
||||
<?php include('header.php'); ?>
|
||||
|
||||
|
||||
<div>
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<a href="#">Home</a> <span class="divider">/</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Grid</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span12">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 12</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span3">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 3</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
<div class="box span3">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 3</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
<div class="box span3">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 3</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
<div class="box span3">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2>Plain</h2>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span6">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 6</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
<div class="box span6">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 6</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 4</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 4</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-th"></i> Grid 4</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="row-fluid">
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
<div class="span4"><h6>span 4</h6></div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12 well">
|
||||
<div>
|
||||
<h1>Box less area</h1>
|
||||
<p>The flat boxes can be created using grids. But you can also use grids inside grids, which makes the layout 100% flexible!</p>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span3">3</div>
|
||||
<div class="span3">3</div>
|
||||
<div class="span3">3</div>
|
||||
<div class="span3">3</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span8">8</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">6</div>
|
||||
<div class="span6">6</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">12</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php include('footer.php'); ?>
|
@ -1,158 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!--
|
||||
Charisma v1.0.0
|
||||
|
||||
Copyright 2012 Muhammad Usman
|
||||
Licensed under the Apache License v2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
http://usman.it
|
||||
http://twitter.com/halalit_usman
|
||||
-->
|
||||
<meta charset="utf-8">
|
||||
<title>Free HTML5 Bootstrap Admin Template</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
|
||||
<meta name="author" content="Muhammad Usman">
|
||||
|
||||
<!-- The styles -->
|
||||
<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
body {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
.sidebar-nav {
|
||||
padding: 9px 0;
|
||||
}
|
||||
</style>
|
||||
<link href="css/bootstrap-responsive.css" rel="stylesheet">
|
||||
<link href="css/charisma-app.css" rel="stylesheet">
|
||||
<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
|
||||
<link href='css/fullcalendar.css' rel='stylesheet'>
|
||||
<link href='css/fullcalendar.print.css' rel='stylesheet' media='print'>
|
||||
<link href='css/chosen.css' rel='stylesheet'>
|
||||
<link href='css/uniform.default.css' rel='stylesheet'>
|
||||
<link href='css/colorbox.css' rel='stylesheet'>
|
||||
<link href='css/jquery.cleditor.css' rel='stylesheet'>
|
||||
<link href='css/jquery.noty.css' rel='stylesheet'>
|
||||
<link href='css/noty_theme_default.css' rel='stylesheet'>
|
||||
<link href='css/elfinder.min.css' rel='stylesheet'>
|
||||
<link href='css/elfinder.theme.css' rel='stylesheet'>
|
||||
<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
|
||||
<link href='css/opa-icons.css' rel='stylesheet'>
|
||||
<link href='css/uploadify.css' rel='stylesheet'>
|
||||
|
||||
<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- The fav icon -->
|
||||
<link rel="shortcut icon" href="img/favicon.ico">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php if(!isset($no_visible_elements) || !$no_visible_elements) { ?>
|
||||
<!-- topbar starts -->
|
||||
<div class="navbar">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<a class="brand" href="index.php"> <img alt="Charisma Logo" src="img/logo20.png" /> <span>Charisma</span></a>
|
||||
|
||||
<!-- theme selector starts -->
|
||||
<div class="btn-group pull-right theme-container" >
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
<i class="icon-tint"></i><span class="hidden-phone"> Change Theme / Skin</span>
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" id="themes">
|
||||
<li><a data-value="classic" href="#"><i class="icon-blank"></i> Classic</a></li>
|
||||
<li><a data-value="cerulean" href="#"><i class="icon-blank"></i> Cerulean</a></li>
|
||||
<li><a data-value="cyborg" href="#"><i class="icon-blank"></i> Cyborg</a></li>
|
||||
<li><a data-value="redy" href="#"><i class="icon-blank"></i> Redy</a></li>
|
||||
<li><a data-value="journal" href="#"><i class="icon-blank"></i> Journal</a></li>
|
||||
<li><a data-value="simplex" href="#"><i class="icon-blank"></i> Simplex</a></li>
|
||||
<li><a data-value="slate" href="#"><i class="icon-blank"></i> Slate</a></li>
|
||||
<li><a data-value="spacelab" href="#"><i class="icon-blank"></i> Spacelab</a></li>
|
||||
<li><a data-value="united" href="#"><i class="icon-blank"></i> United</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- theme selector ends -->
|
||||
|
||||
<!-- user dropdown starts -->
|
||||
<div class="btn-group pull-right" >
|
||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
<i class="icon-user"></i><span class="hidden-phone"> admin</span>
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#">Profile</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="login.php">Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- user dropdown ends -->
|
||||
|
||||
<div class="top-nav nav-collapse">
|
||||
<ul class="nav">
|
||||
<li><a href="#">Visit Site</a></li>
|
||||
<li>
|
||||
<form class="navbar-search pull-left">
|
||||
<input placeholder="Search" class="search-query span2" name="query" type="text">
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div><!--/.nav-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- topbar ends -->
|
||||
<?php } ?>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<?php if(!isset($no_visible_elements) || !$no_visible_elements) { ?>
|
||||
|
||||
<!-- left menu starts -->
|
||||
<div class="span2 main-menu-span">
|
||||
<div class="well nav-collapse sidebar-nav">
|
||||
<ul class="nav nav-tabs nav-stacked main-menu">
|
||||
<li class="nav-header hidden-tablet">Main</li>
|
||||
<li><a class="ajax-link" href="index.php"><i class="icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li>
|
||||
<li><a class="ajax-link" href="ui.php"><i class="icon-eye-open"></i><span class="hidden-tablet"> UI Features</span></a></li>
|
||||
<li><a class="ajax-link" href="form.php"><i class="icon-edit"></i><span class="hidden-tablet"> Forms</span></a></li>
|
||||
<li><a class="ajax-link" href="chart.php"><i class="icon-list-alt"></i><span class="hidden-tablet"> Charts</span></a></li>
|
||||
<li><a class="ajax-link" href="typography.php"><i class="icon-font"></i><span class="hidden-tablet"> Typography</span></a></li>
|
||||
<li><a class="ajax-link" href="gallery.php"><i class="icon-picture"></i><span class="hidden-tablet"> Gallery</span></a></li>
|
||||
<li class="nav-header hidden-tablet">Sample Section</li>
|
||||
<li><a class="ajax-link" href="table.php"><i class="icon-align-justify"></i><span class="hidden-tablet"> Tables</span></a></li>
|
||||
<li><a class="ajax-link" href="calendar.php"><i class="icon-calendar"></i><span class="hidden-tablet"> Calendar</span></a></li>
|
||||
<li><a class="ajax-link" href="grid.php"><i class="icon-th"></i><span class="hidden-tablet"> Grid</span></a></li>
|
||||
<li><a class="ajax-link" href="file-manager.php"><i class="icon-folder-open"></i><span class="hidden-tablet"> File Manager</span></a></li>
|
||||
<li><a href="tour.php"><i class="icon-globe"></i><span class="hidden-tablet"> Tour</span></a></li>
|
||||
<li><a class="ajax-link" href="icon.php"><i class="icon-star"></i><span class="hidden-tablet"> Icons</span></a></li>
|
||||
<li><a href="error.php"><i class="icon-ban-circle"></i><span class="hidden-tablet"> Error Page</span></a></li>
|
||||
<li><a href="login.php"><i class="icon-lock"></i><span class="hidden-tablet"> Login Page</span></a></li>
|
||||
</ul>
|
||||
<label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input id="is-ajax" type="checkbox"> Ajax on menu</label>
|
||||
</div><!--/.well -->
|
||||
</div><!--/span-->
|
||||
<!-- left menu ends -->
|
||||
|
||||
<noscript>
|
||||
<div class="alert alert-block span10">
|
||||
<h4 class="alert-heading">Warning!</h4>
|
||||
<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
<div id="content" class="span10">
|
||||
<!-- content starts -->
|
||||
<?php } ?>
|
File diff suppressed because one or more lines are too long
@ -1,329 +0,0 @@
|
||||
<?php include('header.php'); ?>
|
||||
|
||||
|
||||
<div>
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<a href="#">Home</a> <span class="divider">/</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">Dashboard</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sortable row-fluid">
|
||||
<a data-rel="tooltip" title="6 new members." class="well span3 top-block" href="#">
|
||||
<span class="icon32 icon-red icon-user"></span>
|
||||
<div>Total Members</div>
|
||||
<div>507</div>
|
||||
<span class="notification">6</span>
|
||||
</a>
|
||||
|
||||
<a data-rel="tooltip" title="4 new pro members." class="well span3 top-block" href="#">
|
||||
<span class="icon32 icon-color icon-star-on"></span>
|
||||
<div>Pro Members</div>
|
||||
<div>228</div>
|
||||
<span class="notification green">4</span>
|
||||
</a>
|
||||
|
||||
<a data-rel="tooltip" title="$34 new sales." class="well span3 top-block" href="#">
|
||||
<span class="icon32 icon-color icon-cart"></span>
|
||||
<div>Sales</div>
|
||||
<div>$13320</div>
|
||||
<span class="notification yellow">$34</span>
|
||||
</a>
|
||||
|
||||
<a data-rel="tooltip" title="12 new messages." class="well span3 top-block" href="#">
|
||||
<span class="icon32 icon-color icon-envelope-closed"></span>
|
||||
<div>Messages</div>
|
||||
<div>25</div>
|
||||
<span class="notification red">12</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="box span12">
|
||||
<div class="box-header well">
|
||||
<h2><i class="icon-info-sign"></i> Introduction</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<h1>Charisma <small>free, premium quality, responsive, multiple skin admin template.</small></h1>
|
||||
<p>Its a live demo of the template. I have created Charisma to ease the repeat work I have to do on my projects. Now I re-use Charisma as a base for my admin panel work and I am sharing it with you :)</p>
|
||||
<p><b>All pages in the menu are functional, take a look at all, please share this with your followers.</b></p>
|
||||
|
||||
<p class="center">
|
||||
<a href="http://usman.it/free-responsive-admin-template" class="btn btn-large btn-primary"><i class="icon-chevron-left icon-white"></i> Back to article</a>
|
||||
<a href="http://usman.it/free-responsive-admin-template" class="btn btn-large"><i class="icon-download-alt"></i> Download Page</a>
|
||||
</p>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span4">
|
||||
<div class="box-header well">
|
||||
<h2><i class="icon-th"></i> Tabs</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<ul class="nav nav-tabs" id="myTab">
|
||||
<li><a href="#info">Info</a></li>
|
||||
<li class="active"><a href="#custom">Custom</a></li>
|
||||
<li><a href="#messages">Messages</a></li>
|
||||
</ul>
|
||||
|
||||
<div id="myTabContent" class="tab-content">
|
||||
<div class="tab-pane" id="info">
|
||||
<h3>Charisma <small>a fully featued template</small></h3>
|
||||
<p>Its a fully featured, responsive template for your admin panel. Its optimized for tablet and mobile phones. Scan the QR code below to view it in your mobile device.</p> <img alt="QR Code" class="charisma_qr center" src="img/qrcode136.png" />
|
||||
</div>
|
||||
<div class="tab-pane active" id="custom">
|
||||
<h3>Custom <small>small text</small></h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor.</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Donec consectetur, velit a pharetra ultricies, diam lorem lacinia risus, ac commodo orci erat eu massa. Sed sit amet nulla ipsum. Donec felis mauris, vulputate sed tempor at, aliquam a ligula. Pellentesque non pulvinar nisi.</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="messages">
|
||||
<h3>Messages <small>small text</small></h3>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Donec consectetur, velit a pharetra ultricies, diam lorem lacinia risus, ac commodo orci erat eu massa. Sed sit amet nulla ipsum. Donec felis mauris, vulputate sed tempor at, aliquam a ligula. Pellentesque non pulvinar nisi.</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-user"></i> Member Activity</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="box-content">
|
||||
<ul class="dashboard-list">
|
||||
<li>
|
||||
<a href="#">
|
||||
<img class="dashboard-avatar" alt="Usman" src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( "usman@halalit.net" ) ) ); ?>.png?s=50"></a>
|
||||
<strong>Name:</strong> <a href="#">Usman
|
||||
</a><br>
|
||||
<strong>Since:</strong> 17/05/2012<br>
|
||||
<strong>Status:</strong> <span class="label label-success">Approved</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<img class="dashboard-avatar" alt="Sheikh Heera" src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( "heerasheikh@ymail.com" ) ) ); ?>.png?s=50"></a>
|
||||
<strong>Name:</strong> <a href="#">Sheikh Heera
|
||||
</a><br>
|
||||
<strong>Since:</strong> 17/05/2012<br>
|
||||
<strong>Status:</strong> <span class="label label-warning">Pending</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<img class="dashboard-avatar" alt="Abdullah" src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( "abdullah123456@abc.com" ) ) ); ?>.png?s=50"></a>
|
||||
<strong>Name:</strong> <a href="#">Abdullah
|
||||
</a><br>
|
||||
<strong>Since:</strong> 25/05/2012<br>
|
||||
<strong>Status:</strong> <span class="label label-important">Banned</span>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<img class="dashboard-avatar" alt="Saruar Ahmed" src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( "saruarall@gmail.com" ) ) ); ?>.png?s=50"></a>
|
||||
<strong>Name:</strong> <a href="#">Saruar Ahmed
|
||||
</a><br>
|
||||
<strong>Since:</strong> 17/05/2012<br>
|
||||
<strong>Status:</strong> <span class="label label-info">Updates</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-list-alt"></i> Realtime Traffic</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div id="realtimechart" style="height:190px;"></div>
|
||||
<p class="clearfix">You can update a chart periodically to get a real-time effect by using a timer to insert the new data in the plot and redraw it.</p>
|
||||
<p>Time between updates: <input id="updateInterval" type="text" value="" style="text-align: right; width:5em"> milliseconds</p>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
<div class="row-fluid sortable">
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-list"></i> Buttons</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content buttons">
|
||||
<p class="btn-group">
|
||||
<button class="btn">Left</button>
|
||||
<button class="btn">Middle</button>
|
||||
<button class="btn">Right</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-small"><i class="icon-star"></i> Icon button</button>
|
||||
<button class="btn btn-small btn-primary">Small button</button>
|
||||
<button class="btn btn-small btn-danger">Small button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-small btn-warning">Small button</button>
|
||||
<button class="btn btn-small btn-success">Small button</button>
|
||||
<button class="btn btn-small btn-info">Small button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-small btn-inverse">Small button</button>
|
||||
<button class="btn btn-large btn-primary btn-round">Round button</button>
|
||||
<button class="btn btn-large btn-round"><i class="icon-ok"></i></button>
|
||||
<button class="btn btn-primary"><i class="icon-edit icon-white"></i></button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-mini">Mini button</button>
|
||||
<button class="btn btn-mini btn-primary">Mini button</button>
|
||||
<button class="btn btn-mini btn-danger">Mini button</button>
|
||||
<button class="btn btn-mini btn-warning">Mini button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-mini btn-info">Mini button</button>
|
||||
<button class="btn btn-mini btn-success">Mini button</button>
|
||||
<button class="btn btn-mini btn-inverse">Mini button</button>
|
||||
</p>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-list"></i> Buttons</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content buttons">
|
||||
<p>
|
||||
<button class="btn btn-large">Large button</button>
|
||||
<button class="btn btn-large btn-primary">Large button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-large btn-danger">Large button</button>
|
||||
<button class="btn btn-large btn-warning">Large button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-large btn-success">Large button</button>
|
||||
<button class="btn btn-large btn-info">Large button</button>
|
||||
</p>
|
||||
<p>
|
||||
<button class="btn btn-large btn-inverse">Large button</button>
|
||||
</p>
|
||||
<div class="btn-group">
|
||||
<button class="btn btn-large">Large Dropdown</button>
|
||||
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="#"><i class="icon-star"></i> Action</a></li>
|
||||
<li><a href="#"><i class="icon-tag"></i> Another action</a></li>
|
||||
<li><a href="#"><i class="icon-download-alt"></i> Something else here</a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="#"><i class="icon-tint"></i> Separated link</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
|
||||
<div class="box span4">
|
||||
<div class="box-header well" data-original-title>
|
||||
<h2><i class="icon-list"></i> Weekly Stat</h2>
|
||||
<div class="box-icon">
|
||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<ul class="dashboard-list">
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-arrow-up"></i>
|
||||
<span class="green">92</span>
|
||||
New Comments
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-arrow-down"></i>
|
||||
<span class="red">15</span>
|
||||
New Registrations
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-minus"></i>
|
||||
<span class="blue">36</span>
|
||||
New Articles
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-comment"></i>
|
||||
<span class="yellow">45</span>
|
||||
User reviews
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-arrow-up"></i>
|
||||
<span class="green">112</span>
|
||||
New Comments
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-arrow-down"></i>
|
||||
<span class="red">31</span>
|
||||
New Registrations
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-minus"></i>
|
||||
<span class="blue">93</span>
|
||||
New Articles
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="icon-comment"></i>
|
||||
<span class="yellow">254</span>
|
||||
User reviews
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
|
||||
|
||||
|
||||
<?php include('footer.php'); ?>
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue