Exemplo n.º 1
0
 function HTML_input($length, $extra = NULL)
 {
     $HTML = "";
     $rows = $this->maxlength / $length;
     if (is_null($this->value)) {
         $value = "";
     } else {
         $value = $this->value;
     }
     $HTML .= "<textarea";
     $HTML .= " name=\"" . $this->pagename . "\" id=\"" . $this->pagename . "_ID\"";
     $HTML .= " rows=\"" . $rows . "\" cols=\"" . $length . "\"";
     if ($this->disabled) {
         $HTML .= " readonly";
     }
     if (!is_null($extra)) {
         $HTML .= " " . $extra;
     }
     $HTML .= ">";
     $HTML .= COM_output_edit($value);
     $HTML .= "</textarea>";
     return $HTML;
 }
Exemplo n.º 2
0
</head>

<body><h1><?php 
echo $_STATE->msgGreet;
?>
</h1>
<?php 
if ($_STATE->status == STATE::ENTRY) {
    ?>
<form method="post" name="frmLogin" action="<?php 
    echo $_SERVER['SCRIPT_NAME'];
    ?>
">
<p>
Username: <input name="txtName" id="txtName_ID" type="text" class="formInput" value="<?php 
    echo COM_output_edit($_STATE->fields['txtName']);
    ?>
" maxlength="32" size="32">
</p>
<p>
Password: <input name="txtPswd" type="password" class="formInput" maxlength="32" size="32">
</p>
<p>
<input type="submit" value="Login">   <?php 
    echo $_STATE->msgStatus;
    ?>
</p>
</form>
<?php 
}
?>
Exemplo n.º 3
0
function output_edit($field, $length = -1)
{
    return COM_output_edit($field, $length);
}
Exemplo n.º 4
0
Arquivo: head.php Projeto: bbogin/sr2s
    $sql = "SELECT name FROM " . $db->prefix . "a00_organization WHERE organization_id=:org";
    $stmt = $db->prepare($sql);
    $stmt->bindValue(':org', $_SESSION["organization_id"], PDO::PARAM_INT);
    $stmt->execute();
    if (!($row = $stmt->fetchObject())) {
        $organization = "--No Organization--";
    } else {
        $organization = COM_output_edit($row->name);
    }
    $stmt->closeCursor();
    $sql = "SELECT firstname, lastname FROM " . $db->prefix . "c00_person WHERE person_id=:person";
    $stmt = $db->prepare($sql);
    $stmt->bindValue(':person', $_SESSION["person_id"], PDO::PARAM_INT);
    $stmt->execute();
    $row = $stmt->fetchObject();
    $person = COM_output_edit($row->firstname . " " . $row->lastname);
    $stmt->closeCursor();
    $db = NULL;
} elseif (isset($_SESSION["_EVICTED"])) {
    $organization = $_SESSION["_EVICTED"];
    unset($_SESSION["_EVICTED"]);
}
$redirect = $_SESSION["_SITE_CONF"]["_REDIRECT"];
?>
<html>
<head>
<title>SR2S Timesheets Head</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="<?php 
echo $redirect;
?>
Exemplo n.º 5
0
</head>

<body><h1><?php 
echo $_STATE->msgGreet;
?>
</h1>
<?php 
if ($_STATE->status == STATE::ENTRY) {
    ?>
<form method="post" name="frmLogin" action="<?php 
    echo $_SESSION["BUTLER"] . "?IAm=" . $_STATE->ID;
    ?>
">
<p>
Username: <input name="txtName" id="txtName_ID" type="text" class="formInput" <?php 
    echo "value=\"" . COM_output_edit($_STATE->fields['txtName']) . "\"";
    ?>
 maxlength="32" size="32">
</p>
<p>
Password: <input name="txtPswd" id="txtPswd_ID" type="password" class="formInput" maxlength="32" size="32">
</p>
<p>
<input type="submit" value="Login">   <?php 
    echo $_STATE->msgStatus;
    ?>
</p>
</form>
<?php 
}
?>