Ejemplo n.º 1
0
function formelement_text($tableName, $tableData, $element, $data)
{
    $item = $tableData[$tableName][$element];
    $v = '';
    if ($data !== NULL) {
        $v = $data[$element];
    }
    echo textinput(fieldName($tableName, $element), $v, 40);
}
Ejemplo n.º 2
0
function drawTableTopSQL($table, $oldwhere = '', $tablename = '')
{
    $keylist = array('' => '');
    foreach ($table as $key => $data) {
        if ($key[0] != '_') {
            $keylist[$key] = $data['longname'];
        }
    }
    echo '<form action="view.php" method="POST" class="title">';
    echo hiddeninput('table', $tablename);
    echo html_form_label('orderbycol', 'Sort:');
    echo selectinput('orderbycol', $keylist);
    echo html_form_label('wherecol', 'Search:');
    echo selectinput('wherecol', $keylist);
    $searchtypes = array('substring' => 'Substring', 'sqlregex' => 'SQL Regex', 'gnuregex' => 'GNU Regex');
    echo selectinput('wherefunc', $searchtypes);
    echo textinput('wheredata', '', 16);
    echo hiddeninput('wherecurrent', $oldwhere);
    echo submitinput('refresh', 'Refresh');
    echo '</form>';
}
Ejemplo n.º 3
0
            for ($j = 0; $j < count($interests); $j += 2) {
                echo "<td class='ti_interest'>", Ht::radio_h("ti{$id}", $interests[$j], $j == $xj), "</td>";
            }
            echo "</td></tr>\n";
        }
        echo "    </table></div>\n";
    }
    if ($Me->privChair || @$formcj->tags) {
        if (is_array(@$formcj->tags)) {
            $tags = $formcj->tags;
        } else {
            $tags = array();
        }
        echo "<h3 class=\"profile\">Tags</h3>\n";
        if ($Me->privChair) {
            echo "<div class='", feclass("contactTags"), "'>", textinput("contactTags", join(" ", $tags), 60), "</div>\n  <div class='hint'>Example: “heavy”. Separate tags by spaces; the “pc” tag is set automatically.<br /><strong>Tip:</strong>&nbsp;Use <a href='", hoturl("settings", "group=tags"), "'>tag colors</a> to highlight subgroups in review lists.</div>\n";
        } else {
            echo join(" ", $tags), "\n  <div class='hint'>Tags represent PC subgroups and are set by administrators.</div>\n";
        }
    }
    echo "</div>\n";
    // fx1
}
echo "<div class='aa c'><table class='pt_buttons'>\n";
$buttons = array(Ht::submit("register", $newProfile ? "Create account" : "Save changes", array("class" => "bb")));
if ($Me->privChair && !$newProfile && $Me->contactId != $Acct->contactId) {
    $tracks = databaseTracks($Acct->contactId);
    $buttons[] = array(Ht::js_button("Delete user", "popup(this,'d',0)"), "(admin only)");
    if (count($tracks->soleAuthor)) {
        $Conf->footerHtml("<div id='popup_d' class='popupc'>\n  <p><strong>This user cannot be deleted</strong> because they are the sole\n  contact for " . pluralx($tracks->soleAuthor, "paper") . " " . textArrayPapers($tracks->soleAuthor) . ".\n  Delete these papers from the database or add alternate paper contacts and\n  you will be able to delete this user.</p>\n  <div class='popup_actions'>" . Ht::js_button("Close", "popup(null,'d',1)") . "</div></div>");
    } else {
Ejemplo n.º 4
0
<?php

/* $Id: login.inc.php,v 1.5 2003/06/12 17:43:47 robbat2 Exp $ */
/* $Source: /code/convert/cvsroot/infrastructure/rats/gui/login.inc.php,v $ */
//print_r(get_defined_vars());
?>
<form action="validate.php" method="POST" class="title">
<table class="title">
<tr><td>
<label for="username">Username</label>
</td>
<td>
<?php 
echo textinput('username', '', 32);
echo hiddeninput('loginerror', '0');
?>
</td>
</tr>
<tr>
<td>
<label for="password">Password</label>
</td>
<td>
<?php 
echo passwordinput('password', '', 32);
?>
</td>
</tr>

<tr>
<td>