예제 #1
0
파일: login.php 프로젝트: kanbang/Colt
    $errorMsg = $errAuthenticationFailed;
} catch (Exception $e) {
    $errorMsg = $e->getMessage();
}
?>

<!-- PAGE DEFINITION -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

    <?php 
OutputHeader($pageTitle);
?>

<body onLoad="<?php 
echo CreateJavaScriptArrayStr('popups', $popups);
?>
ClosePopups( popups );<?php 
$popups = array();
?>
">

    <table cellspacing="0" cellpadding="0" border="0" class="main">
        <tr>
            <?php 
DisplaySiteHeader(false, true, false, false, $formName, $homePage);
?>
        </tr>
        <tr>
            <td class="lhSash"></td>
예제 #2
0
function DisplayEnabledBar($label, $name, $checked, $enabled, $enableFields)
{
    // Set checked String
    if ($checked) {
        $checkedStr = "checked";
    } else {
        $checkedStr = "";
    }
    // Set Enabled String
    if ($enabled) {
        $enabledStr = "";
    } else {
        $enabledStr = "disabled";
    }
    // Set OnClick string
    if ($enableFields != null && !empty($enableFields)) {
        $onClickStr = ' onClick = "';
        $arrayStr = CreateJavaScriptArrayStr('fields', $enableFields);
        $onClickStr = $onClickStr . $arrayStr;
        $onClickStr = $onClickStr . ' ChangeEnable( fields );"';
    } else {
        $onClickStr = "";
    }
    echo "<!-- Enabled Bar -->\n";
    echo "<br><br>\n";
    echo '<table width=100% border="0" cellspacing="0" cellpadding="4">', "\n";
    echo '  <tr>', "\n";
    echo '      <td class="PropertyBar" align="left">', "\n";
    echo '          ', $label, "\n";
    echo '      </td>', "\n";
    echo '      <td class="PropertyBar" align="right">', "\n";
    echo '          <input name="', $name, '" type="checkbox"', $checkedStr, ' ', $enabledStr, $onClickStr, ' >Enabled', "\n";
    echo '      </td>', "\n";
    echo '  </tr>', "\n";
    echo '</table>', "\n";
    echo "&nbsp;<br>\n";
}