Location: PHPKode > projects > WebArchive > phparchive.0.1.82.beta/conhelp.php
<?php
/**
 * @version $Id: conhelp.php,v 1.2 2003/11/28 00:46:22 freedev Exp $
 * @author Vincenzo D'Amore <hide@address.com>
 * @package wa_base
*/

/**
 *
 */

require_once("./wacommon.inc.php");
require_once("./includes/databases.inc.php");
require_once("./includes/contents.inc.php");
// require_once("./includes/modifyform.inc.php");
// require_once("./includes/searchform.inc.php");
require_once("./includes/waform.inc.php");
require_once("./includes/wafields.inc.php");


CheckSession();

function LocalHTMLHeader($sTitle, $sRedirect = "", $iSec = "0")
{
	$sStyleName = "print.css";

//	$uri = parse_url($GLOBALS['WA_ABSOLUTE_URI']);

//	$uri['path'] = AppendSlash($uri['path']);

	echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
	echo '<html><head><title>'.$sTitle.'</title>';
	if (!empty($sRedirect))
		echo "<META HTTP-EQUIV='Refresh' CONTENT='".$iSec.";URL=".$sRedirect."'>";
//	echo '<link rel="shortcut icon" href="'.$uri['path'].'images/wa_ico.png">';
//	echo '<link rel="stylesheet" href="styles/'.$sStyleName.'" src="styles/'.$sStyleName.'" type="text/css">';
//	echo '<link rel="stylesheet" title="Standard" href="'.$uri['path'].'styles/'.$sStyleName.'" type="text/css">';
	echo '<link rel="shortcut icon" href="images/wa_ico.png">';
	echo '<link rel="stylesheet" title="Standard" href="styles/'.$sStyleName.'" type="text/css">';
	echo '<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">';
	echo '<META http-equiv="Default-Style" content="Standard">';
	echo '</head>';
}

LocalHTMLHeader("Online Help", "");

?>
<body class="BodyStandard">
<script type="text/javascript" Language="JavaScript1.2" src="../javascripts/handleform.js"></script>
<!--- Main Table Start -->
<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr>
	<td></td>
  </tr>
  <tr>
	<td>
		<!--- Content Table Start -->
		<?php
		$form = new WAForm();
		if ( $form->InitByUID($_GET['FormUID']) )
		{
			$recValues = new WARecordset();
			$recValues->SetConnection($formChild->m_Form);
			
			$sSqlFields = "SELECT tbfieldsdesc.WAFieldShortD, tbfieldsdesc.WAFieldLongD";
			$sSqlFields .= " FROM tbfields LEFT JOIN tbfieldsdesc ON tbfields.WAIdField = tbfieldsdesc.WAIdField ";
			$sSqlFields .= " WHERE ";
			if ($GLOBALS['WA_LOCATION'] == "IT")
				$sSqlFields .= " (tbfieldsdesc.WAIdLang IS NULL OR tbfieldsdesc.WAIdLang = 1 ) AND";
			else
				$sSqlFields .= " (tbfieldsdesc.WAIdLang IS NULL OR tbfieldsdesc.WAIdLang = 2 ) AND";
			$sSqlFields .= " tbfields.WAIdForm = ".$form->GetID()." ORDER BY tbfields.WASortValue";
			
			echo "<div class='Title'>".WA_MSG_HELP."&nbsp;".htmlentities($form->GetDescription(), ENT_QUOTES)."</div>";
			$recValues->WAOpenRecordset($sSqlFields);
			if ($recValues->WAFetchRow())
			{
				echo "<table width='100%'>";
				do
				{
					$sDesc = $recValues->WAResult("WAFieldShortD");
					if ( !empty( $sDesc ) )
					{
						echo "<tr><td valign='top' width='25%'><b>";
						echo htmlentities($sDesc, ENT_QUOTES);
						echo "</b></td><td>&nbsp;</td><td>";
						echo htmlentities($recValues->WAResult("WAFieldLongD"), ENT_QUOTES);
						echo "</td></tr>\n";
					}
				}
				while ($recValues->WAFetchRow());
				echo "</table>";
			}
			$recValues->WACloseRecordset();
		}
		?>
		<!--- Content Table End -->
	</td>
  </tr>
  <tr>
	<td>
    </td>
  </tr>
</table>
<!--- Main Table End -->
</body>
</html>
Return current item: WebArchive