Location: PHPKode > projects > QuickTicket > quickticket/qti_ext_prefix.php
<?php

/**
* PHP versions 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to hide@address.com so we can mail you a copy immediately.
*
* @package    QuickTicket
* @author     Philippe Vandenberghe <hide@address.com>
* @copyright  2008-2012 The PHP Group
* @version    2.5 build:20101222
*/

session_start();
require_once('bin/qti_init.php');
include(Translate('qti_adm.php'));

if ( $oVIP->role!='A' ) die(Error(13));

// INITIALISE

$oVIP->selfurl = 'qti_ext_prefix.php';
$oVIP->exiturl = 'qti_adm_sections.php';
$oVIP->selfname = $L['Topic_prefix'];
$oVIP->exitname = $L['Sections'];

// --------
// HTML START
// --------

$oHtml->scripts=array();

include('qti_adm_p_header.php');

echo '<table cellspacing="0" class="hidden">
<tr class="hidden">
<td class="hidden" style="width:250px;padding-right:15px">
<div style="margin-top:10px;border:1px solid #AAAAAA;padding:4px">
<p class="small" style="margin:0">To create a new serie, upload your images in each skin subfolders.<br /><br />
Images filenames must be <b>ico_prefix_{serie}_{id}.gif</b> where {serie} is a character and {id} a two digit value.<br /><br />
Example: ico_prefix_e_01.gif.<br /><br />
To give names to your serie and to your icons, edit the file qti_icon.php in each language subfolders.<br /><br />
The id 00 cannot be created: 00, meaning "no prefix", is automatically available in each serie.</p>
</div>
</td>
<td class="hidden">

';

// Browse image file

foreach($L['Prefix_serie'] as $strKey=>$strName)
{
echo '<table cellspacing="0" class="hidden">
<tr class="hidden">
<td class="hidden" style="width:200px; border-bottom:solid 1px #aaaaaa"><h2>',$strName,'</h2></td>
<td class="hidden" style=" border-bottom:solid 1px #aaaaaa">
';
echo '<table cellspacing="0" class="hidden">
<colgroup span="3"><col style="width:50px;"></col><col style="width:50px;"></col><col></col></colgroup>
<tr class="hidden"><td>#</td><td>Icon</td><td>Name</td></tr>
';
for ($i=1;$i<10;$i++)
{
  if ( file_exists($_SESSION[QT]['skin_dir'].'/ico_prefix_'.$strKey.'_0'.$i.'.gif') )
  {
  echo '<tr class="hidden"><td>',$strKey,' 0',$i,'</td><td><img src="',$_SESSION[QT]['skin_dir'],'/ico_prefix_',$strKey,'_0',$i,'.gif" /></td><td>',$L['Ico_prefix'][$strKey.'_0'.$i],'</td></tr>',N;
  }
}
echo '
</table>
</td>
</tr>
</table>
';
}

echo '
</td>
</tr>
</table>';

// HTML END

include('qti_adm_p_footer.php');

?>
Return current item: QuickTicket