function listConfig($rows, $jfu_config)
    {
        $count = count($rows) + 1;
        // because id starts at 1
        $config = new JConfig();
        $vers = $jfu_config['version'];
        // we build the version string!
        $latest_version = JFUHelper::getlatestVersion();
        $version_description = $latest_version;
        if ($latest_version == -1) {
            $version_description = '<span class="jfu_nocheck">' . JText::_('C_VERSION_NO') . ' <a href="http://jfu.tinywebgallery.com" target="_blank">http://jfu.tinywebgallery.com</a> ' . JText::_('C_VERSION_NO2') . '</span>';
        } else {
            if ($latest_version != $vers) {
                $version_description = '<span class="jfu_old">' . JText::_('C_VERSION_OLD1') . ' <a href="http://jfu.tinywebgallery.com" target="_blank">http://jfu.tinywebgallery.com</a> ' . JText::_('C_VERSION_OLD2') . JText::_('C_VERSION_OLD3') . ' <b>' . $latest_version . '</b>. ' . JText::_('C_VERSION_OLD4') . ' <b>' . $vers . '.</b><p>
' . JText::_('C_VERSION_OLD5') . ' <a href="http://blog.tinywebgallery.com" target="_blank">' . JText::_('C_VERSION_OLD6') . '</a>.' . '</p></span>';
            } else {
                $version_description = '<span class="jfu_current">' . JText::_('C_VERSION_OK') . '</span>';
            }
        }
        echo '
<script type="text/javascript" src="components/com_joomla_flash_uploader/jfu.js"></script>
<form action="index2.php" method="post" name="adminForm">
  <h2>' . JText::_('C_TITLE') . '</h2>		
	' . JText::_('C_TEXT') . '
<h3 style="text-align:left;">' . JText::_('E_H3_PROFILES') . '</h3>
 <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist" >
       <thead>
       <tr>
         <th width="20">
          <input type="checkbox" name="toggle"
                 value="" onclick="checkAll(' . $count . ');"/>
          </th>
          <th align="left" width="2%">' . JText::_('C_ID') . '</th>
          <th align="left" width="40">' . JText::_('C_GROUP') . '</th>
          <th align="left" width="10%">' . JText::_('C_PROFILE') . '</th>
          <th align="left" width="20%">' . JText::_('C_DESCRIPTION') . '</th>
          <th align="left" width="15%">' . JText::_('C_FOLDER') . '</th>
          <th align="left" width="10%">' . JText::_('C_UPLOAD_LIMIT') . '</th>
          <th align="left" width="20%">' . JText::_('C_USERS') . '</th>
          <th align="left" width="5%">' . JText::_('C_MASTER_PROFILE') . '</th>
          <th width="5%">' . JText::_('C_ENABLED') . '</th>
          <th width="10%">' . JText::_('C_DATE') . '</th>          
         </tr>
         </thead>
';
        $i = 0;
        foreach ($rows as $row) {
            $evenodd = $i % 2;
            if ($row->maxfilesize == "") {
                $row->maxfilesize = JText::_('C_AUTO') . getMaximumUploadSize();
            }
            echo <<<HTML
      <tr class="row{$evenodd}">
       <td>      
        <input type="checkbox" id="cb{$row->id}" name="cid[]"
               value="{$row->id}"
               onclick="isChecked(this.checked);" />
       </td>
         <td>
          <a href="#edit"
             onclick="return listItemTask('cb{$row->id}','edit')">
            {$row->id}</a>
        </td>
        <td>{$row->gid}&nbsp;</td>
        <td>
\t\t\t\t <a href="#edit"
\t\t\t\t             onclick="return listItemTask('cb{$row->id}','edit')">
\t\t\t\t            {$row->config_name}</a>
        </td>
        <td>{$row->description}&nbsp;</td>
        <td>{$row->folder}&nbsp;</td>
        <td>{$row->maxfilesize} KB</td>
        <td>{$row->resize_label}</td>
HTML;
            // master
            echo "<td align='center'>";
            if ($row->id != 1) {
                echo "<span style='cursor:pointer;' id='enableM" . $row->id . "'>";
                if ($row->master_profile == "true") {
                    echo "<img onClick='disableMaster(" . $row->id . ")' src='images/tick.png' border='0' />";
                } else {
                    echo "<img onClick='enableMaster(" . $row->id . ")' src='images/publish_x.png' border='0' />";
                }
            } else {
                echo '&nbsp;';
            }
            echo "</span>";
            echo "</td>";
            // enable
            echo "<td align='center'>";
            echo "<span style='cursor:pointer;' id='enableP" . $row->id . "'>";
            if ($row->enable_setting == "true") {
                echo "<img onClick='disableProfile(" . $row->id . ")' src='images/tick.png' border='0' />";
            } else {
                echo "<img onClick='enableProfile(" . $row->id . ")' src='images/publish_x.png' border='0' />";
            }
            echo "</span>";
            echo "</td>";
            echo "<td align='center'>" . $row->last_modified_date . "</td></tr>";
            $i++;
        }
        echo "</table><br>";
        echo '
<h3 style="text-align:left;">' . JText::_('E_H3_GLOB') . '</h3>
<table class="admintable">
     <thead> 
		<tr>
			<th width="20%">' . JText::_('E_H_SETTING') . '</th>
			<th width="20%">' . JText::_('E_H_VALUE') . '</th>
			<th width="60%">' . JText::_('E_H_DESCRIPTION') . '</th>
		</tr>
     </thead> 
	 <tbody>
 	    <tr>
			<td class="key">' . JText::_('E_S_JFU_VERSION') . '</td>
			<td>' . $vers . '</td>
			<td>' . $version_description . '</td>
		</tr>
 	    <tr>
			<td class="key">' . JText::_('E_S_JFU_SESSION') . '</td>
			<td>' . $config->session_handler . ($config->session_handler == 'database' ? " &nbsp;<img src='../includes/js/ThemeOffice/warning.png' style='vertical-align:middle;width:16px' />" : " &nbsp;<img src='images/tick.png' style='vertical-align:middle;' />") . '</td>
			<td>' . ($config->session_handler == 'database' ? '<span class="jfu_nocheck">' . JText::_('E_D_JFU_SESSION_DB') . '</span>' : JText::_('E_D_JFU_SESSION_NONE')) . '</td>
		</tr>
    	<tr>
			<td class="key">' . JText::_('E_S_JFU_KEEP') . '</td>
			<td>' . tfuHTML::truefalseRadioList('keep_tables', 'class="inputbox"', $jfu_config['keep_tables']) . '</td>
			<td>' . JText::_('E_D_JFU_KEEP') . '</td>
		</tr>
			<tr>
			<td class="key">' . JText::_('E_S_JFU_USE_JS_INCLUDE') . '</td>
			<td>' . tfuHTML::truefalseRadioList('use_js_include', 'class="inputbox"', $jfu_config['use_js_include']) . '</td>
			<td>' . JText::_('E_D_JFU_USE_JS_INCLUDE') . '</td>
		</tr>
		<tr>
			<td class="key">' . JText::_('E_S_JFU_BACKEND_ACCESS_UPLOAD') . '</td>
			<td>' . tfuHTML::showAdminSelectBox('backend_access_upload', 'class="inputbox"', $jfu_config['backend_access_upload']) . '</td>
			<td>' . JText::_('E_D_JFU_BACKEND_ACCESS_UPLOAD') . '</td>
		</tr>
			<tr>
			<td class="key">' . JText::_('E_S_JFU_BACKEND_ACCESS_CONFIG') . '</td>
			<td>' . tfuHTML::showAdminSelectBox('backend_access_config', 'class="inputbox"', $jfu_config['backend_access_config']) . '</td>
			<td>' . JText::_('E_D_JFU_BACKEND_ACCESS_CONFIG') . '</td>
		</tr>
		<tr>
			<td class="key">' . JText::_('E_S_JFU_FILE_CHMOD') . '</td>
			<td><input type="text" class="w50" maxsize="100"
				name="file_chmod" value="' . $jfu_config['$file_chmod'] . '" /></td>
			<td>' . JText::_('E_D_JFU_FILE_CHMOD') . '</td>
		</tr>
			<tr>
			<td class="key">' . JText::_('E_S_JFU_DIR_CHMOD') . '</td>
			<td><input type="text" class="w50" maxsize="100"
				name="dir_chmod" value="' . $jfu_config['dir_chmod'] . '" /></td>
			<td>' . JText::_('E_D_JFU_DIR_CHMOD') . '</td>
		</tr>
		</tbody>
</table>		
';
        echo <<<HTML
      <input type="hidden" name="task" value="" />
      <input type="hidden" name="option" value="com_joomla_flash_uploader"/>
      <input type="hidden" name="boxchecked" value="0" />
  </form>
HTML;
    }