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

// QuickTicket 1.9.0.3 build:20081001

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

if ( $oVIP->role!='A' ) die($L['E_admin']);

// INITIALISE

$oVIP->selfurl = 'qti_adm_status_ico.php';
$oVIP->exiturl = 'qti_adm_statuses.php';
$oVIP->selfname = 'Icons';
$oVIP->exitname = $L['Status_man'];

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

$arrJava = array('com'=>false);

include('qti_adm_p_header.php');
include('qti_adm_p_title.php');

// Browse image file

echo $_SESSION[QT]['skin_dir'];
$intHandle = opendir($_SESSION[QT]['skin_dir']);

$i=0;
while (false !== ($strFile = readdir($intHandle)))
{
  if ( $strFile!='.' && $strFile!='..' ) {
  if ( substr($strFile,0,3)!='bg_' ) {
    $arrFiles[] = $strFile;
    $i++;
  }}
}
closedir($intHandle);
sort($arrFiles);

echo ', ',$i,' files';

echo '<table cellspacing="0" class="tale_hidden">
<groupcol><col></col><col style="width:120px"></col><col style="width:100px"></col></groupcol>
<tr><td>&nbsp;</td><th><b>Icon</b></th><th><b>File</b></th></tr>',N;
foreach($arrFiles as $key => $val)
{
  if (strtolower(substr($val,-4,4))=='.gif')
  {
  echo '<tr><td>&nbsp;</td><td class="td_icon"><img src="',$_SESSION[QT]['skin_dir'],'/',$val,'" style="max-width:120px;max-height:120px"/></td><td class="td_icon">',$val,'</td></tr>',N;
  }
}
echo '</table>',N,N;

// HTML END

include('qti_adm_p_footer.php');

?>
Return current item: QuickTicket