• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP enter函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中enter函数的典型用法代码示例。如果您正苦于以下问题:PHP enter函数的具体用法?PHP enter怎么用?PHP enter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了enter函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: write

function write(&$frm)
{
    if (isset($_REQUEST["btn_back"])) {
        return enter($frm);
    }
    if ($frm->validate("write")) {
        return confirm($frm);
    }
    $upd = new dbUpdate("suppstock", "cubit");
    $del = new dbDelete("suppstock", "cubit");
    foreach ($_REQUEST["stkcod"] as $suppid => $stkcod) {
        if (empty($stkcod)) {
            $del->setOpt("suppid='{$suppid}' AND stkid='{$_REQUEST['id']}'");
            $del->run();
            continue;
        }
        $cols = grp(m("suppid", $suppid), m("stkid", $_REQUEST["id"]), m("stkcod", $stkcod));
        $upd->setOpt($cols, "suppid='{$suppid}' AND stkid='{$_REQUEST['id']}'");
        $upd->run(DB_REPLACE);
    }
    foreach ($_REQUEST["stkdes"] as $suppid => $stkdes) {
        if (empty($stkcod)) {
            $del->setOpt("suppid='{$suppid}' AND stkid='{$_REQUEST['id']}'");
            $del->run();
            continue;
        }
        $cols = grp(m("suppid", $suppid), m("stkid", $_REQUEST["id"]), m("stkdes", $stkdes));
        $upd->setOpt($cols, "suppid='{$suppid}' AND stkid='{$_REQUEST['id']}'");
        $upd->run(DB_REPLACE);
    }
    $OUT = "<script>window.close();</script>";
    return $OUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:33,代码来源:supp_stkcod.php


示例2: confirm

function confirm($_POST)
{
    # get vars
    extract($_POST);
    # validate input
    require_lib("validate");
    $v = new validate();
    $v->isOk($dept, "string", 1, 50, "Invalid User Department.");
    # display errors, if any
    if ($v->isError()) {
        $theseErrors = "";
        $errors = $v->getErrors();
        foreach ($errors as $e) {
            $theseErrors .= "-" . $e["msg"] . "<br>";
        }
        $Errors = "\n        \t<tr>\n        \t\t<td class='err' colspan='2'>{$theseErrors}</td>\n        \t</tr>\n\t\t\t<tr><td colspan='2'><br></td></tr>";
        return enter($dept, $Errors);
    }
    $confirm = "\n\t\t<h3>Add User Department</h3>\n\t\t<h4>Confirm entry</h4>\n\t\t<table " . TMPL_tblDflts . " width='300'>\n\t\t<form action='" . SELF . "' method='POST'>\n\t\t\t<input type='hidden' name='key' value='write'>\n\t\t\t<input type='hidden' name='dept' value='{$dept}'>\n\t\t\t<tr>\n\t\t\t\t<th>Field</th>\n\t\t\t\t<th>Value</th>\n\t\t\t</tr>\n\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t<td>User Department</td>\n\t\t\t\t<td>{$dept}</td>\n\t\t\t</tr>\n\t\t\t<tr><td colspan='2'><br></td></tr>\n\t\t\t<tr>\n\t\t\t\t<th colspan='2'>Select Permissions</th>\n\t\t\t</tr>";
    // list scripts
    db_connect();
    $sql = "SELECT DISTINCT name, script FROM scripts ORDER BY script";
    $rslt = db_exec($sql);
    $i = 0;
    while ($scr = pg_fetch_array($rslt)) {
        $confirm .= "\n\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t<td colspan='2' nowrap><input type='checkbox' name='perm[]' value='{$scr['name']}'>" . strtoupper($scr['script']) . "</td>\n\t\t\t</tr>";
        $i++;
    }
    $confirm .= "\n\t\t\t<tr>\n\t\t\t\t<td align='right' colspan='3'><input type='submit' value='Add Dept &raquo'></td>\n\t\t\t</tr>\n\t\t</form>\n\t\t</table>\n\t\t<p>\n\t\t<table " . TMPL_tblDflts . ">\n\t\t\t<tr>\n\t\t\t\t<th>Quick Links</th>\n\t\t\t</tr>\n\t\t\t<script>document.write(getQuicklinkSpecial());</script>\n\t\t</table>";
    return $confirm;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:31,代码来源:admin-deptadd.php


示例3: search

function search()
{
    global $_GET;
    extract($_GET);
    require_lib("validate");
    $v =& new Validate();
    $v->isOk($idnum, "string", 0, 100, "Invalid id / registration number.");
    if ($v->isError()) {
        $err = "";
        foreach ($v->getErrors() as $key => $value) {
            $err .= "<li class=err>{$value['msg']}</li>";
        }
        return enter($err);
    }
    // post the search request
    $search_request = @file(urler(BLACKLIST_SEARCH_URL . "?idnum={$idnum}&" . sendhash()));
    if ($search_request == false) {
        $site_msg = "<li class=err>Connection to server failed. Check you internet connection and try again.</li>";
    } else {
        $site_msg = "";
        $status = 0;
        // 0 = none, 1 = read message
        foreach ($search_request as $value) {
            $value = str_replace("\n", "", $value);
            switch ($value) {
                case "<DR_E>":
                    break;
                case "<DR_M>":
                    $status = 1;
                    break;
                case "</DR_M>":
                    $status = 0;
                    break;
                case "</DR_E>":
                    $status = 0;
                    break;
                default:
                    if ($status == 1) {
                        $site_msg .= "{$value}\n";
                    }
            }
        }
    }
    $OUTPUT = "\r\n\t<h3>Search Black / White List Registry</h3>";
    foreach ($_GET as $key => $value) {
        if ($key != "key") {
            $OUTPUT .= "<input type=hidden name='{$key}' value='{$value}'>";
        }
    }
    $OUTPUT .= "\r\n\t<table cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "'>\r\n\t<tr>\r\n\t\t<th>Data Returned</th>\r\n\t</tr>\r\n\t<tr class='bg-odd'>\r\n\t\t<td valign=top>{$site_msg}</td>\r\n\t</tr>\r\n\t</table>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:52,代码来源:search-blacklist.php


示例4: write

function write()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($wh_id, "num", 1, 9, "Invalid store id.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    $sql = "UPDATE hire.hire_settings SET value='{$wh_id}' WHERE field='wh_id'";
    db_exec($sql) or errDie("Unable to save store id.");
    $OUTPUT = "<h3>Hire Settings</h3>\r\n\t<table " . TMPL_tblDflts . ">\r\n\t\t<tr><th colspan='2'>Write</th></tr>\r\n\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t<td><li>Successfully saved settings.</li></td>\r\n\t\t</tr>\r\n\t</table>";
    return $OUTPUT;
}
开发者ID:kumarsivarajan,项目名称:accounting-123,代码行数:14,代码来源:hire-settings.php


示例5: write

function write()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($id, "num", 1, 9, "Invalid booking selection.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    $sql = "DELETE FROM hire.bookings WHERE id='{$id}'";
    db_exec($sql) or errDie("Unable to retrieve bookings.");
    $OUTPUT = "<h3>Remove Booking</h3>\r\n\t<table " . TMPL_tblDflts . ">\r\n\t\t<tr>\r\n\t\t\t<th>Remove</th>\r\n\t\t</tr>\r\n\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t<td><li>Booking successfully removed</li></td>\r\n\t\t</tr>\r\n\t</table>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:14,代码来源:booking_remove.php


示例6: update

function update()
{
    extract($_REQUEST);
    if (isset($remove)) {
        foreach ($remove as $id => $value) {
            $sql = "DELETE FROM cubit.pslip_reasons WHERE id='{$id}'";
            db_exec($sql) or errDie("Unable to remove reasons.");
        }
    }
    if (!empty($reason)) {
        $sql = "INSERT INTO cubit.pslip_reasons (reason) VALUES ('{$reason}')";
        db_exec($sql) or errDie("Unable to add reason.");
    }
    return enter();
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:15,代码来源:dispatch_reasons.php


示例7: create

function create($map, $set, $xSize)
{
    foreach ($map as $k => $value) {
        if (in_array($value, $set)) {
            spot();
            list($n) = explode('-', $value);
            if ($n == $xSize - 1) {
                enter();
            }
        } else {
            blank();
            if ($value[0] == $xSize - 1) {
                enter();
            }
        }
    }
}
开发者ID:bug1024,项目名称:doc,代码行数:17,代码来源:cli-bar.php


示例8: validate

function validate()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($type_name, "string", 1, 255, "Invalid type name.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    // Make sure we don't have another entry with the same name
    $sql = "SELECT * FROM cubit.document_types WHERE type_name='{$type_name}'";
    $dt_rslt = db_exec($sql) or errDie("Unable to retrieve document types.");
    if (pg_num_rows($dt_rslt)) {
        $errmsg = "<li class='err'>A document type with the same name exists.</li>";
        return enter($errmsg);
    }
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:17,代码来源:doc_type_save.php


示例9: write

function write()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($name, "string", 1, 80, "Invalid type name.");
    $v->isOk($descr, "string", 0, 255, "Invalid description.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    if ($page_option == "Edit") {
        $sql = "UPDATE cubit.asset_types SET name='{$name}', description='{$descr}' WHERE id='{$id}'";
    } else {
        $sql = "INSERT INTO cubit.asset_types (name, description) VALUES ('{$name}', '{$descr}')";
    }
    db_exec($sql) or errDie("Unable to save asset type.");
    $OUTPUT = "\r\n\t\t<h3>{$page_option} Asset Type</h3>\r\n\t\t<form method='post' action='" . SELF . "'>\r\n\t\t<table " . TMPL_tblDflts . ">\r\n\t\t\t<tr>\r\n\t\t\t\t<th>Write</th>\r\n\t\t\t</tr>\r\n\t\t\t<tr class='" . bg_class() . "'>\r\n\t\t\t\t<td>Successfully Saved the Asset Type.</td>\r\n\t\t\t</tr>\r\n\t\t</table>\r\n\t\t</form>";
    return $OUTPUT;
}
开发者ID:kumarsivarajan,项目名称:accounting-123,代码行数:19,代码来源:asset_type_save.php


示例10: confirm

function confirm()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($title, "string", 1, 255, "Invalid title.");
    $v->isOk($team_id, "num", 1, 9, "Invalid team selection.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    // Retrieve team name
    $sql = "SELECT name FROM crm.teams WHERE id='{$team_id}'";
    $team_rslt = db_exec($sql) or errDie("Unable to retrieve team.");
    $team_name = pg_fetch_result($team_rslt, 0);
    if (empty($team_name)) {
        $team_name = "[None]";
    }
    $OUTPUT = "<h3>{$page_option} Main Todo</h3>\n\t<form method='post' action='" . SELF . "'>\n\t" . frmupdate_passon() . "\n\t<input type='hidden' name='key' value='write' />\n\t<input type='hidden' name='page_option' value='{$page_option}' />\n\t<input type='hidden' name='id' value='{$id}' />\n\t<input type='hidden' name='title' value='{$title}' />\n\t<input type='hidden' name='team_id' value='{$team_id}' />\n\t<table cellpadding='2' cellspacing='0' class='shtable'>\n\t\t<tr>\n\t\t\t<th colspan='2'>Confirm</th>\n\t\t</tr>\n\t\t<tr class='odd'>\n\t\t\t<td>Title</td>\n\t\t\t<td>{$title}</td>\n\t\t</tr>\n\t\t<tr class='even'>\n\t\t\t<td>Team Permissions</td>\n\t\t\t<td>{$team_name}</td>\n\t\t</tr>\n\t</table>\n\t<input type='submit' value='Write &raquo' />\n\t</form>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:20,代码来源:todo_main_save.php


示例11: write

function write()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($name, "string", 1, 255, "Invalid team name.");
    $v->isOk($description, "string", 1, 255, "Invalid team description.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    if (strtolower($page_option) == "edit") {
        $sql = "\n\t\tUPDATE project.teams SET name='{$name}', description='{$description}'\n\t\tWHERE id='{$id}'";
        db_exec($sql) or errDie("Unable to update team.");
    } else {
        $sql = "\n\t\tINSERT INTO project.teams (name, description)\n\t\tVALUES ('{$name}', '{$description}')";
        db_exec($sql) or errDie("Unable to add team.");
    }
    $OUTPUT = "\n\t\t\t\t<h3>{$page_option} Project Management Team</h3>\n\t\t\t\t<table " . TMPL_tblDflts . ">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Write</th>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t\t\t<td><li>Successfully saved the team.</li></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:20,代码来源:team_save.php


示例12: write

function write()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($user_id, "num", 1, 20, "Invalid cubit user selection.");
    $v->isOk($description, "string", 0, 255, "Invalid person description.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    if (strtolower($page_option) == "edit") {
        $sql = "\n\t\tUPDATE project.people SET user_id='{$user_id}', description='{$description}'\n\t\tWHERE id='{$id}'";
        db_exec($sql) or errDie("Unable to add person");
    } else {
        $sql = "\n\t\tINSERT INTO project.people (user_id, description)\n\t\tVALUES ('{$user_id}', '{$description}')";
        db_exec($sql) or errDie("Unable to add person.");
    }
    $OUTPUT = "<h3>{$page_option} Person</h3>\n\t<table " . TMPL_tblDflts . ">\n\t\t<tr>\n\t\t\t<th colspan='2'>Write</th>\n\t\t</tr>\n\t\t<tr class='" . bg_class() . "'>\n\t\t\t<td><li>Successfully saved the person to cubit.</li></td>\n\t\t</tr>\n\t</table>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:20,代码来源:people_save.php


示例13: write

function write()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($hd_perc, "num", 1, 9, "Invalid half day rate.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    $sql = "SELECT value FROM cubit.settings WHERE constant='HD_PERC'";
    $rslt = db_exec($sql) or errDie("Unable to retrieve percentage.");
    if (pg_num_rows($rslt)) {
        $sql = "\n\t\tUPDATE cubit.settings SET value='{$hd_perc}'\n\t\tWHERE constant='HD_PERC'";
    } else {
        $sql = "\n\t\tINSERT INTO cubit.settings (constant, value)\n\t\t\tVALUES ('HD_PERC', '{$hd_perc}')";
    }
    db_exec($sql) or errDie("Unable to update half day rate.");
    $msg = "<li class='yay'>Successfully saved half day rate.</li>";
    return enter($msg);
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:20,代码来源:half_day_setting.php


示例14: confirm

function confirm($_POST)
{
    extract($_POST);
    // Validate
    require_lib("validate");
    $v = new validate();
    $v->isOk($ws_cond, "string", 1, 1024, "Invalid display notice.");
    // Did we get any errors?
    if ($v->isError()) {
        $confirm = "";
        $errors = $v->getErrors();
        foreach ($errors as $e) {
            $confirm .= "<li class=err>{$e['msg']}</li>";
        }
        return enter($confirm);
    }
    // Layout
    $OUTPUT = "<h3>Workshop Settings</h3>\n\t<form method=post action='" . SELF . "'>\n\t<input type=hidden name=key value='write'>\n\t<input type=hidden name=ws_cond value='{$ws_cond}'>\n\t<table border=0 cellpadding='" . TMPL_tblCellPadding . "' cellspacing='" . TMPL_tblCellSpacing . "'>\n\t  <tr>\n\t    <th colspan=2>Confirm</td>\n\t  </tr>\n\t  <tr class='bg-odd'>\n\t    <td>Default workshop conditions</td>\n\t    <td>" . nl2br($ws_cond) . "</td>\n\t  </tr>\n\t  <tr>\n\t    <td colspan=2 align=right>\n\t      <input type=submit name=key value='&laquo Correction'>\n\t      <input type=submit value='Write &raquo'>\n\t    </td>\n\t  </tr>\n\t</table>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:20,代码来源:workshop-settings.php


示例15: write

function write()
{
    extract($_REQUEST);
    if (!preg_match("/(png|jpg|gif)\$/", $_FILES["file"]["name"])) {
        $msg = "<li class='err'>We only accept images of type png, jpg or gif</li>";
        return enter($sorder_num, $msg);
    }
    $fp = fopen($_FILES["file"]["tmp_name"], "rb");
    $buf = "";
    while (!feof($fp)) {
        $buf .= fread($fp, 1024);
    }
    $file = base64_encode($buf);
    $sql = "INSERT INTO cubit.pslip_signed_files (file) VALUES ('{$file}')";
    db_exec($sql) or errDie("Unable to add signed invoice.");
    $id = pglib_lastid("cubit.pslip_signed_files", "id");
    $sql = "\n\t\tINSERT INTO cubit.pslip_signed_index (\n\t\t\tid, file_name, file_type, sordid\n\t\t) VALUES (\n\t\t\t'{$id}', '" . $_FILES["file"]["name"] . "', '" . $_FILES["file"]["type"] . "', '{$sordid}'\n\t\t)";
    db_exec($sql) or errDie("Unable to add signed invoice index.");
    $OUTPUT = "\n\t\t<h3>Signed Invoice</h3>\n\t\t<table " . TMPL_tblDflts . ">\n\t\t\t<tr>\n\t\t\t\t<th>Write</th>\n\t\t\t</tr>\n\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t<td><li>Signed Invoice Successfully Added.</li></td>\n\t\t\t</tr>\n\t\t</table>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:21,代码来源:signed_invoices.php


示例16: write

function write()
{
    extract($_REQUEST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($name, "string", 1, 255, "Invalid name.");
    $v->isOk($description, "string", 0, 255, "Invalid description.");
    $v->isOk($extension, "string", 0, 65, "Invalid extension.");
    if ($v->isError()) {
        return enter($v->genErrors());
    }
    if (strtolower($page_option) == "edit") {
        $sql = "UPDATE project.doc_types SET name='{$name}', description='{$description}', extension='{$extension}' WHERE id='{$id}'";
        db_exec($sql) or errDie("Unable to update document type.");
    } else {
        $sql = "INSERT INTO project.doc_types (name, description, extension) VALUES ('{$name}', '{$description}', '{$extension}')";
        db_exec($sql) or errDie("Unable to add document type.");
    }
    $OUTPUT = "\n\t\t<h3>{$page_option} Project Document Type</h3>\n\t\t<table " . TMPL_tblDflts . ">\n\t\t\t<tr>\n\t\t\t\t<th>Write</th>\n\t\t\t</tr>\n\t\t\t<tr class='" . bg_class() . "'>\n\t\t\t\t<td><li>Successfully added the document type.</li></td>\n\t\t\t</tr>\n\t\t</table>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:21,代码来源:doc_type_save.php


示例17: request

function request($frm)
{
    if (isset($_POST["btn_back"])) {
        return enter($frm);
    }
    if ($frm->validate("request")) {
        return confirm($frm);
    }
    $newkey = genkey();
    if (isset($_REQUEST["suppid"])) {
        $suppid = $_REQUEST["suppid"];
        $custid = "0";
    } else {
        $custid = $_REQUEST["custid"];
        $suppid = "0";
    }
    $cols = grp(m("introtime", raw("CURRENT_TIMESTAMP")), m("introip", "0.0.0.0"), m("email", $_REQUEST["email"]), m("custid", $custid), m("suppid", $suppid), m("key", dbrow("0.0.0.0/0", "", $newkey)), m("userid", USER_ID));
    $upd = new dbUpdate("keys", "trh", $cols);
    $upd->run(DB_INSERT);
    if ($upd->affected() > 0) {
        if (isset($_REQUEST["suppid"])) {
            if (($r = send_trhmsg("supp", $_REQUEST["suppid"], $_REQUEST["email"], "reqkey", $newkey)) === true) {
                $OUT = "Sent request for communication to supplier. On response you will be notified.";
            } else {
                $OUT = "Error sending request for communication: {$r}";
            }
        } else {
            if (($r = send_trhmsg("cust", $_REQUEST["custid"], $_REQUEST["email"], "reqkey", $newkey)) === true) {
                $OUT = "Sent request for communication to customer. On response you will be notified.";
            } else {
                $OUT = "Error sending request for communication: {$r}";
            }
        }
    } else {
        $OUT = "Error sending request for communication: Error updating database.";
    }
    return $OUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:38,代码来源:comm_init.php


示例18: confirm

function confirm($_POST)
{
    extract($_POST);
    require_lib("validate");
    $v = new validate();
    $v->isOk("{$retrtries}", "num", 0, 3, "Invalid value for tries.");
    $v->isOk("{$retrmins}", "num", 0, 3, "Invalid value for minutes.");
    if ($retrtries != 0 && $retrmins == 0) {
        $v->addError('', "Tries needs a value");
    } elseif ($retrmins != 0 && $retrtries == 0) {
        $v->addError('', "Minutes needs a value");
    }
    if ($v->isError()) {
        $confirm = "";
        $errors = $v->getErrors();
        foreach ($errors as $e) {
            $confirm .= "<li class=err>{$e['msg']}</li>";
        }
        return enter($confirm);
    }
    $OUTPUT = "<form method=post action='" . SELF . "'>\n\n\t<input type=hidden name=key value='write'>\n\t<input type=hidden name=retrtries value='{$retrtries}'>\n\t<input type=hidden name=retrminutes value='{$retrmins}'>\n\n\t<table border=0 cellspacing='" . TMPL_tblCellSpacing . "' cellpadding='" . TMPL_tblCellPadding . "'>\n\t\t<th>Setting</th>\n\t\t<th>Value</th>\n\t\t<tr class='bg-odd'>\n\t\t\t<td>Login retries:</td>\n\t\t\t<td>{$retrtries}</td>\n\t\t</tr>\n\t\t<tr class='bg-even'>\n\t\t\t<td>Blocked Time:</td>\n\t\t\t<td>{$retrmins}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align=right colspan=2><input type=submit value='Write &raquo'></td>\n\t\t</tr>\n\t\t<tr><td>&nbsp;</td></tr>\n\t\t<tr><th>Quick Links</th></tr>\n\t\t<script>document.write(getQuicklinkSpecial());</script>\n\t</table>\n\t</form>";
    require 'template.php';
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:23,代码来源:set-login-retries.php


示例19: write

function write($_POST)
{
    extract($_POST);
    require_lib("validate");
    $v = new validate();
    $v->isOk($id, "num", 1, 255, "Invalid group id.");
    if ($v->isError()) {
        return enter($_POST, $v->genErrors());
    }
    $get_grp = "SELECT grouptitle FROM egroups WHERE id = '{$id}' LIMIT 1";
    $run_grp = db_exec($get_grp) or errDie("Unable to get email group information (0)");
    if (pg_numrows($run_grp) < 1) {
        #no group found ???
        return confirm($_POST, "<li class='err'>Email group not found.</li>");
    }
    $gtitle = pg_fetch_result($run_grp, 0, 0);
    $write_sql = "DELETE FROM egroups WHERE id = '{$id}'";
    $run_write = db_exec($write_sql) or errDie("Unable to remove group information.");
    $write_sql2 = "DELETE FROM email_groups WHERE email_group = '{$gtitle}'";
    $run_write2 = db_exec($write_sql2) or errDie("Unable to remove email group email addresses.");
    $OUTPUT = "<h3>Write Group</h3>\n\t<table " . TMPL_tblDflts . ">\n\t\t<tr>\n\t\t\t<th>Write</th>\n\t\t</tr>\n\t\t<tr class='" . bg_class() . "'>\n\t\t\t<td><li>Successfully removed the group.</li></td>\n\t\t</tr>\n\t</table>";
    return $OUTPUT;
}
开发者ID:andrecoetzee,项目名称:accounting-123.com,代码行数:23,代码来源:email-group-remove.php


示例20: PDITT_UserConnect

function PDITT_UserConnect($data){
                $username = $data['username'];
                $password = $data['password'];
                $idnumber = $data['idnumber'];

                $cek = cek_user_pditt($username,$password);
                if (!$cek){
                        return array('errcode'=>100, 'reason'=>'user cannot login');
                }

                $username_moodle = $cek['userid'];
                $password_moodle = $cek['d'];

                $result = find_course_pditt($idnumber);
                if ($result==-1){
                        return array('errcode'=>100, 'courseid'=>0, 'reason'=>'course not found');
                }



                enter($username,$password_moodle);
                return array('errcode'=>0, 'cmd'=>'GO','url'=> $result['url']);
}
开发者ID:rm77,项目名称:pd1tt_module,代码行数:23,代码来源:fungsi_lms.php



注:本文中的enter函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP enterprise_hook函数代码示例发布时间:2022-05-15
下一篇:
PHP ent2ncr函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap