Help Center Live Community
April 24, 2014, 12:23:43 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: drop down menu  (Read 5353 times)
corncomps
Not too much to say...
*
Offline Offline

Posts: 3


« on: September 23, 2007, 09:01:10 AM »

Hi i am wondering if some one could help me out i am trying to work out how to change the part from where the customer picks the department from the way it is to a drop down menu.

Daniel Simmons
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #1 on: September 23, 2007, 03:10:28 PM »

That would be something you would change in the template.  Most things are passed to the template as a data array.  The template engine is Smarty, and there is a wealth of information at http://smarty.php.net if you care to learn more about it.
Logged

how may I help you today?
victor
HCL Member
****
Offline Offline

Posts: 266


WWW
« Reply #2 on: October 09, 2007, 07:00:06 PM »

hi corncomps, here the instructions to do that if you are using Bliss template:
1.- Open templates/bliss/live_main.tpl

2.- Find this code :
Code:
<table width="90%" border="0" cellspacing="1" cellpadding="2" class="border">
  <tr>
    <td class="dark"><div align="center">{if $retry == 'true'}<b>{$lang.retry_select_department}</b>{else}{$lang.select_department}{/if}</div></td>
  </tr>
    {section name=i loop=$avaliable}
        {if $avaliable[i].status == 'true'}
  <tr class="online">
    <td><div align="left"><input type="radio" name="departmentid" value="{$avaliable[i].id}"{if $departmentid == $avaliable[i].id} checked="checked"{/if} /> {$avaliable[i].name} - Online</div></td>
  </tr>
        {else}
  <tr class="offline">
    <td><div align="left"><input type="radio" name="departmentid" value="{$avaliable[i].id}" disabled="disabled" /> {$avaliable[i].name} - Offline</div></td>
  </tr>
        {/if}
    {/section}
</table>

3.- Replace with this code:
Code:
<table width="90%" border="0" cellspacing="1" cellpadding="2" class="border">
  <tr>
    <td class="dark"><div align="center">{if $retry == 'true'}<b>{$lang.retry_select_department}</b>{else}{$lang.select_department}{/if}</div></td>
  </tr>
  <tr><td>
  <select size="1" name="departmentid">
    {section name=i loop=$avaliable}
        {if $avaliable[i].status == 'true'}
<option value="{$avaliable[i].id}"{if $departmentid == $avaliable[i].id} selected{/if} /> {$avaliable[i].name} - Online</option>
        {else}
        {/if}
    {/section}
  </select>
    </td></tr>
</table>

And it's done, I hope this helps
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.172 seconds with 18 queries.

Google visited last this page Yesterday at 08:23:34 AM