Jump to content

Button reply ticket


maelse

Recommended Posts

Ok I understand.

 

header.tpl

{php}$_SESSION['userisfrom'] = $GLOBALS['userisfrom'];{/php}
<!DOCTYPE html>
<html lang="en">
 <head>
   <meta http-equiv="content-type" content="text/html; charset={$charset}" />
   <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title>

   {if $systemurl}<base href="{$systemurl}" />
   {/if}<script type="text/javascript" src="includes/jscript/jquery.js"></script>
   {if $livehelpjs}{$livehelpjs}
   {/if}
   <link href="templates/{$template}/css/bootstrap.css" rel="stylesheet">
   <link href="templates/{$template}/css/whmcs.css" rel="stylesheet">

   <script src="templates/{$template}/js/whmcs.js"></script>




<link rel="shortcut icon" type="image/x-icon" href="templates/{$template}/style/images/favicon.png" />
<link rel="stylesheet" type="text/css" href="templates/{$template}/style.css" media="all" />

<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="templates/{$template}/style/css/ie7.css" media="all" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="templates/{$template}/style/css/ie8.css" media="all" />
<![endif]-->


<script type="text/javascript" src="templates/{$template}/style/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="templates/{$template}/style/js/faded.js"></script>
<script type="text/javascript" src="templates/{$template}/style/js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="templates/{$template}/style/js/sliding_effect.js"></script>
<script type="text/javascript" src="templates/{$template}/style/js/twitter.min.js"></script>
<script type="text/javascript" src="templates/{$template}/style/js/scripts.js"></script>

   {$headoutput}

{if $capatacha && $capatacha eq "recaptcha"}{literal}<script type="text/javascript">
var RecaptchaOptions = {
   theme : 'white'
};
</script>{/literal}{/if}    

 </head>

 <body>

{php}include_once("analyticswordpresswhmcs.php");{/php} <!-- Esta linea inserta el código de Analytics a través de la función include_one de PHP -->

{$headeroutput}

<!-- Begin Header -->
<div id="header">
 <!-- Begin Logo -->
 <div id="logo"><a href="http://www.doweem.com"><img src="templates/{$template}/img/logo.png" alt="Fadelicious" /></a></div><!-- End Logo -->

 <!-- Begin Menu -->
 <div id="menux">
   <div id="smoothmenu1" class="ddsmoothmenu">
     <ul>
       <li><a href="http://www.doweem.com">Inicio</a></li>
       <li><a href="http://www.doweem.com/precio-dominios/">Dominios</a>
         <ul>
           <li><a href="http://www.doweem.com/clientes/cart.php?a=add&domain=register">Registrar dominio</a></li>
           <li><a href="http://www.doweem.com/clientes/cart.php?a=add&domain=transfer">Transferir dominio</a></li>
           <li><a href="http://www.doweem.com/precio-dominios/">Precio dominios</a></li>
         </ul>
       </li>
       <li><a href="http://www.doweem.com/detalles-de-los-planes-de-hosting-en-doweem-com/">Hosting</a>
         <ul>
           <li><a href="http://www.doweem.com/clientes/cart.php?gid=1">Hosting Linux</a></li>
           <li><a href="http://www.doweem.com/clientes/cart.php?gid=11">Hosting Windows</a></li>
           <li><a href="http://www.doweem.com/detalles-de-los-planes-de-hosting-en-doweem-com/">Comparar planes</a></li>
         </ul>
       </li>
       <li><a href="http://www.doweem.com/detalles-de-los-planes-de-marketing-online/">Marketing online</a></li>
       <li><a href="http://www.doweem.com/clientes/clientarea.php">Area clientes</a></li>
       <li><a href="http://www.doweem.com/clientes/contact.php">Contacto</a></li>
     </ul>
     <span></span> </div>
 </div>
 <div class="clearfix"></div>
</div><!-- End Menu -->
<!-- End Header -->

<!-- <div id="whmcsheader">
   <div class="whmcscontainer2">
       <div id="whmcstxtlogo"><a href="index.php">{$companyname}</a></div>
       <div id="whmcsimglogo"><a href="http://www.doweem.com"><img src="templates/{$template}/img/doweemlogo.png" alt="{$companyname}" /></a></div>
   </div>
</div> -->

 <div class="navbar navbar-fixed-top">
   <div class="navbar-inner">
     <div class="container">
       <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
         <span class="icon-bar"></span>
       </a>
       <div class="nav-collapse">
	<ul class="nav">
		<li><a href="{if $loggedin}clientarea{else}index{/if}.php">{$LANG.hometitle}</a></li>
	</ul>
{if $loggedin}
   <ul class="nav">
       <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navservices} <b class="caret"></b></a>
         <ul class="dropdown-menu">
           <li><a href="clientarea.php?action=products">{$LANG.clientareanavservices}</a></li>
           {if $condlinks.pmaddon}<li><a href="index.php?m=project_management">{$LANG.clientareaprojects}</a></li>{/if}
           <li class="divider"></li>
           <li><a href="cart.php">{$LANG.navservicesorder}</a></li>
           <li><a href="cart.php?gid=addons">{$LANG.clientareaviewaddons}</a></li>
         </ul>
       </li>
     </ul>


	  <ul class="nav">
		<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navdomains} <b class="caret"></b></a>
		  <ul class="dropdown-menu">
			<li><a href="clientarea.php?action=domains">{$LANG.clientareanavdomains}</a></li>
			<li class="divider"></li>
			<li><a href="cart.php?gid=renewals">{$LANG.navrenewdomains}</a></li>
			<li><a href="cart.php?a=add&domain=register">{$LANG.navregisterdomain}</a></li>
			<li><a href="cart.php?a=add&domain=transfer">{$LANG.navtransferdomain}</a></li>
			<li class="divider"></li>
			<li><a href="domainchecker.php">{$LANG.navwhoislookup}</a></li>
		  </ul>
		</li>
	  </ul>

	  <ul class="nav">
		<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navbilling} <b class="caret"></b></a>
		  <ul class="dropdown-menu">
			<li><a href="clientarea.php?action=invoices">{$LANG.invoices}</a></li>
			<li><a href="clientarea.php?action=quotes">{$LANG.quotestitle}</a></li>
			<li class="divider"></li>
			{if $condlinks.addfunds}<li><a href="clientarea.php?action=addfunds">{$LANG.addfunds}</a></li>{/if}
			{if $condlinks.masspay}<li><a href="clientarea.php?action=masspay&all=true">{$LANG.masspaytitle}</a></li>{/if}
			{if $condlinks.updatecc}<li><a href="clientarea.php?action=creditcard">{$LANG.navmanagecc}</a></li>{/if}
		  </ul>
		</li>
	  </ul>

	  <ul class="nav">
		<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.navsupport} <b class="caret"></b></a>
		  <ul class="dropdown-menu">
			<li><a href="supporttickets.php">{$LANG.navtickets}</a></li>
			<li><a href="knowledgebase.php">{$LANG.knowledgebasetitle}</a></li>
			<li><a href="downloads.php">{$LANG.downloadstitle}</a></li>
			<li><a href="serverstatus.php">{$LANG.networkstatustitle}</a></li>
		  </ul>
		</li>
	  </ul>

	  <ul class="nav">
		<li><a href="submitticket.php">{$LANG.navopenticket}</a></li>
	  </ul>

	  <ul class="nav">
           <li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li>
	  </ul>

	  <ul class="nav pull-right">
		<li class="dropdown">
		  <a href="#" class="dropdown-toggle" data-toggle="dropdown">{$LANG.hello}, {$loggedinuser.firstname}! <b class="caret"></b></a>
		  <ul class="dropdown-menu">
			<li><a href="clientarea.php?action=details">{$LANG.editaccountdetails}</a></li>
			{if $condlinks.updatecc}<li><a href="clientarea.php?action=creditcard">{$LANG.navmanagecc}</a></li>{/if}
			<li><a href="clientarea.php?action=contacts">{$LANG.clientareanavcontacts}</a></li>
			{if $condlinks.addfunds}<li><a href="clientarea.php?action=addfunds">{$LANG.addfunds}</a></li>{/if}
			<li><a href="clientarea.php?action=emails">{$LANG.navemailssent}</a></li>
			<li><a href="clientarea.php?action=changepw">{$LANG.clientareanavchangepw}</a></li>
			<li class="divider"></li>
			<li><a href="logout.php">{$LANG.logouttitle}</a></li>
		  </ul>
		</li>
	  </ul>
{else}
	  <ul class="nav">
		<li><a href="announcements.php">{$LANG.announcementstitle}</a></li>
	  </ul>

	  <ul class="nav">
		<li><a href="knowledgebase.php">{$LANG.knowledgebasetitle}</a></li>
	  </ul>

	  <ul class="nav">
		<li><a href="serverstatus.php">{$LANG.networkstatustitle}</a></li>
	  </ul>

	  <ul class="nav">
		<li><a href="affiliates.php">{$LANG.affiliatestitle}</a></li>
	  </ul>

	  <ul class="nav">
		<li><a href="contact.php">{$LANG.contactus}</a></li>
	  </ul>

	  <ul class="nav pull-right">
		<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">{$LANG.account} <b class="caret"></b></a>
		  <ul class="dropdown-menu">
			<li><a href="clientarea.php">{$LANG.login}</a></li>
			<li><a href="register.php">{$LANG.register}</a></li>
			<li class="divider"></li>
			<li><a href="pwreset.php">{$LANG.forgotpw}</a></li>
		  </ul>
		</li>
	  </ul>
{/if}

       </div><!-- /.nav-collapse -->
     </div>
   </div><!-- /navbar-inner -->
 </div><!-- /navbar -->


<div class="whmcscontainer">
   <div class="contentpadded">

{if $pagetitle eq $LANG.carttitle}<div id="whmcsorderfrm">{/if}

 

footer.tpl


{if $pagetitle eq $LANG.carttitle}</div>{/if}

   </div>
</div>

<div class="footerdivider">
   <div class="fill"></div>
</div>

<div class="whmcscontainer">
   <div class="footer">
       <div id="copyright">{$LANG.copyright} © {$date_year} {$companyname}. {$LANG.allrightsreserved}.</div>
       {if $langchange}<div id="languagechooser">{$setlanguage}</div>{/if}
       <div class="clear"></div>
   </div>
</div>

{$footeroutput}

<!-- FOOTER FADELICIOUS -->
<br>
<br>
<br>
<br>
<center>
<img alt="footer_logos" src="http://www.doweem.com/wp-content/uploads/2012/03/footer_logos.png">
</center>
<!-- Begin Footer -->
<div id="footer">
 <div class="footer-content">
   <div class="col3-wrap">

      <!-- Begin Recent Posts -->
     <div class="col3">
       <h2 class="textwidget">Formas de Pago Seguro</h2>
       <ul class="bullet">
        <li><img src="http://www.doweem.com/wp-content/uploads/2012/02/candado_paypal.png" border="0" width="56" height="60" style="margin: 5px 0px 15px 0px; float: right; border: 0pt none;" />PayPal Check Out, subscripción o tarjeta de (crédito/débito), siempre a través de TPV PayPal.</li>
        <li>Transferencia Bancaria o ingreso</li>
        <li>Los precios no incluyen I.V.A.</li>
       </ul>
     </div>
     <!-- Begin Recent Posts -->

     <!-- Begin Tags -->
     <div class="col3">
       <h2 class="textwidget">Contacto Pre-venta</h2>
        <ul class="unordered">
         <li><img src="http://www.doweem.com/wp-content/uploads/2011/12/support.png" border="0" width="53" height="55" style="float: right; margin: 0px 20px 0px 0px; border: 0pt none;" />Para usuarios no registrados, ofrecemos un formulario de <a href="../clientes/contact.php">contacto pre-venta</a>. Recibirá respuesta en menos de 24 horas de lunes a viernes.</a></li>
       </ul>      
     </div>
     <!-- End Tags -->

     <!-- Begin Twitter -->
     <div class="col3">
       <h2 class="textwidget">Sobre Nosotros</h2>
       <ul class="unordered">
         <li><a href="http://www.doweem.com/terms-of-service/">Términos del Servicio</a></li>
       </ul>
       <ul class="unordered">
         <li><a href="/politica-de-privacidad/">Política de Privacidad</a></li>
       </ul>
       <ul class="unordered">
         <li><a href="/facturacion-para-autonomos-reales-empresas-espanolas/">Facturación para Autónomos (reales) / Empresas Españolas</a></li>
       </ul>
     </div>
     <!-- End Twitter -->
   </div>
 </div>
</div>
<!-- End Footer -->

<!-- Begin Footer Bottom -->
<div id="footer-bottom">
 <div id="footer-bottom-light"></div>
 <div class="footer-bottom-content">
   <div class="copyright">
     <p>© Copyright 2012 doweem.com - Todos los derechos reservados.</p>
   </div>
   <div class="social"> <a href="http://facebook.com/DOWEEM"><img src="templates/{$template}/style/images/social1.png" alt="Facebook" /></a> <a href="http://twitter.com/DOWEEM"><img src="templates/{$template}/style/images/social2.png" alt="Twitter" /></a> <!--<a href="#"><img src="templates/{$template}/img/social3.png" alt="Flickr" /></a> <a href="#"><img src="templates/{$template}/img/social4.png" alt="StumbleUpon" /></a> <a href="#"><img src="templates/{$template}/img/social5.png" alt="Del.icio.us" /></a> <a href="#"><img src="templates/{$template}/img/social6.png" alt="RSS" /></a>--> </div>
 </div>
</div>
<!-- End Footer Bottom -->

</body>
</html>

 

You tell me.

Link to comment
Share on other sites

Well now I've gotten better. When I access the ticket writing field appears open. And can be closed by pressing the Answer button. But you should see the text field closed when accessing the ticket.

 

Add the code viewticket.tpl

{if $error}

<p>{$LANG.supportticketinvalid}</p>

{else}

{include file="$template/pageheader.tpl" title=$LANG.supportticketsviewticket|cat:' #'|cat:$tid}

{if $errormessage}
<div class="alert-message error">
   <p class="bold">{$LANG.clientareaerrors}</p>
   <ul>
       {$errormessage}
   </ul>
</div>
{/if}

<h2>{$subject}</h2>

<div class="ticketdetailscontainer">
   <div class="col4">
       <div class="internalpadding">
           {$LANG.supportticketsubmitted}
           <div class="detail">{$date}</div>
       </div>
   </div>
   <div class="col4">
       <div class="internalpadding">
           {$LANG.supportticketsdepartment}
           <div class="detail">{$department}</div>
       </div>
   </div>
   <div class="col4">
       <div class="internalpadding">
           {$LANG.supportticketspriority}
           <div class="detail">{$urgency}</div>
       </div>
   </div>
   <div class="col4">
       <div class="internalpadding">
           Status
           <div class="detail">{$status}</div>
       </div>
   </div>
   <div class="clear"></div>
</div>

{if $customfields}
<table>
{foreach from=$customfields item=customfield}
<tr><td>{$customfield.name}:</td><td>{$customfield.value}</td></tr>
{/foreach}
</table>
{/if}

<p><input type="button" value="{$LANG.clientareabacklink}" class="btn" onclick="window.location='supporttickets.php'" /> <input type="button" value="{$LANG.supportticketsreply}" class="btn btn-primary" onclick="jQuery('#replycont').slideToggle()" />{if $showclosebutton} <input type="button" value="{$LANG.supportticketsclose}" class="btn btn-danger" onclick="window.location='{$smarty.server.PHP_SELF}?tid={$tid}&c={$c}&closeticket=true'" />{/if}</p>

<div id="replycont" class="ticketreplybox{if !$smarty.get.postreply} hidden{/if}">
<form method="post" action="{$smarty.server.PHP_SELF}?tid={$tid}&c={$c}&postreply=true" enctype="multipart/form-data" class="form-stacked">

   <fieldset>

    <div class="row">
           <div class="multicol">
               <div class="clearfix">
       		    <label for="name">{$LANG.supportticketsclientname}</label>
       			<div class="input">
       			    {if $loggedin}<input class="xlarge disabled" type="text" id="name" value="{$clientname}" disabled="disabled" />{else}<input class="xlarge" type="text" name="replyname" id="name" value="{$replyname}" />{/if}
       			</div>
       		</div>
       	</div>
           <div class="multicol">
               <div class="clearfix">
       		    <label for="email">{$LANG.supportticketsclientemail}</label>
       			<div class="input">
       			    {if $loggedin}<input class="xlarge disabled" type="text" id="email" value="{$email}" disabled="disabled" />{else}<input class="xlarge" type="text" name="replyemail" id="email" value="{$replyemail}" />{/if}
       			</div>
       		</div>
       	</div>
       </div>

    <div class="clearfix">
	    <label for="message">{$LANG.contactmessage}</label>
		<div class="input">
		    <textarea name="replymessage" id="message" rows="12" class="fullwidth">{$replymessage}</textarea>
		</div>
	</div>

    <div class="clearfix">
	    <label for="attachments">{$LANG.supportticketsticketattachments}:</label>
		<div class="input">
		    <input type="file" name="attachments[]" style="width:70%;" /><br />
               <div id="fileuploads"></div>
               <a href="#" onclick="extraTicketAttachment();return false"><img src="images/add.gif" align="absmiddle" border="0" /> {$LANG.addmore}</a><br />
               ({$LANG.supportticketsallowedextensions}: {$allowedfiletypes})
		</div>
	</div>

   </fieldset>

   <p align="center"><input type="submit" value="{$LANG.supportticketsticketsubmit}" class="btn btn-primary" /></p>

</form>
</div>

<div class="ticketmsgs">
{foreach from=$descreplies key=num item=reply}
   <div class="{if $reply.admin}admin{else}client{/if}header">
       <div style="float:right;">{$reply.date}</div>
       {if $reply.admin}
           {$reply.name} || {$LANG.supportticketsstaff}
       {elseif $reply.contactid}
           {$reply.name} || {$LANG.supportticketscontact}
       {elseif $reply.userid}
           {$reply.name} || {$LANG.supportticketsclient}
       {else}
           {$reply.name} || {$reply.email}
       {/if}
   </div>
   <div class="{if $reply.admin}admin{else}client{/if}msg">

       {$reply.message}

       {if $reply.attachments}
       <div class="attachments">
           <strong>{$LANG.supportticketsticketattachments}:</strong><br />
           {foreach from=$reply.attachments key=num item=attachment}
             <img src="images/article.gif" align="middle" /> <a href="dl.php?type=ar&id={$reply.id}&i={$num}">{$attachment}</a><br />
           {/foreach}
       </div>
       {/if}

       {if $reply.id && $reply.admin && $ratingenabled}
       {if $reply.rating}
       <table class="ticketrating" align="right">
           <tr>
               <td>{$LANG.ticketreatinggiven}&nbsp</td>
               {foreach from=$ratings item=rating}
               <td background="images/rating_{if $reply.rating>=$rating}pos{else}neg{/if}.png"></td>
               {/foreach}
           </tr>
       </table>
       {else}
       <table class="ticketrating" align="right">
           <tr onmouseout="rating_leave('rate{$reply.id}')">
               <td>{$LANG.ticketratingquestion}&nbsp</td>
               <td class="point" onmouseover="rating_hover('rate{$reply.id}_1')" onclick="rating_select('{$tid}','{$c}','rate{$reply.id}_1')"><strong>{$LANG.ticketratingpoor} </strong></td>
               {foreach from=$ratings item=rating}
               <td class="star" id="rate{$reply.id}_{$rating}" onmouseover="rating_hover(this.id)" onclick="rating_select('{$tid}','{$c}',this.id)"></td>
               {/foreach}
               <td class="point" onmouseover="rating_hover('rate{$reply.id}_5')" onclick="rating_select('{$tid}','{$c}','rate{$reply.id}_5')"><strong> {$LANG.ticketratingexcellent}</strong></td>
           </tr>
       </table>
{/if}
<div class="clear"></div>
{/if}

   </div>
{/foreach}
</div>

<p><input type="button" value="{$LANG.clientareabacklink}" class="btn" onclick="window.location='supporttickets.php'" /> <input type="button" value="{$LANG.supportticketsreply}" class="btn btn-primary" onclick="jQuery('#replycont2').slideToggle()" />{if $showclosebutton} <input type="button" value="{$LANG.supportticketsclose}" class="btn btn-danger" onclick="window.location='{$smarty.server.PHP_SELF}?tid={$tid}&c={$c}&closeticket=true'" />{/if}</p>

<div id="replycont2" class="ticketreplybox hidden">
<form method="post" action="{$smarty.server.PHP_SELF}?tid={$tid}&c={$c}&postreply=true" enctype="multipart/form-data" class="form-stacked">

   <fieldset>

    <div class="row">
           <div class="multicol">
               <div class="clearfix">
       		    <label for="name">{$LANG.supportticketsclientname}</label>
       			<div class="input">
       			    {if $loggedin}<input class="xlarge disabled" type="text" id="name" value="{$clientname}" disabled="disabled" />{else}<input class="xlarge" type="text" name="replyname" id="name" value="{$replyname}" />{/if}
       			</div>
       		</div>
       	</div>
           <div class="multicol">
               <div class="clearfix">
       		    <label for="email">{$LANG.supportticketsclientemail}</label>
       			<div class="input">
       			    {if $loggedin}<input class="xlarge disabled" type="text" id="email" value="{$email}" disabled="disabled" />{else}<input class="xlarge" type="text" name="replyemail" id="email" value="{$replyemail}" />{/if}
       			</div>
       		</div>
       	</div>
       </div>

    <div class="clearfix">
	    <label for="message">{$LANG.contactmessage}</label>
		<div class="input">
		    <textarea name="replymessage" id="message" rows="12" class="fullwidth">{$replymessage}</textarea>
		</div>
	</div>

    <div class="clearfix">
	    <label for="attachments">{$LANG.supportticketsticketattachments}:</label>
		<div class="input">
		    <input type="file" name="attachments[]" style="width:70%;" /><br />
               <div id="fileuploads"></div>
               <a href="#" onclick="extraTicketAttachment();return false"><img src="images/add.gif" align="absmiddle" border="0" /> {$LANG.addmore}</a><br />
               ({$LANG.supportticketsallowedextensions}: {$allowedfiletypes})
		</div>
	</div>

   </fieldset>

   <p align="center"><input type="submit" value="{$LANG.supportticketsticketsubmit}" class="btn btn-primary" /></p>

</form>
</div>

{/if}

 

Thanks for the help. Regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated