当前位置: 首页>>代码示例>>PHP>>正文


PHP EX_pageStart函数代码示例

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


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

示例1: update_db

    $stmt->execute();
    $_STATE->record_id = $stmt->fetchObject()->subtask_id;
    $stmt->closeCursor();
    update_db();
    $_STATE->msgStatus = "The subtask record for \"" . $_STATE->fields["Name"]->value() . "\" has been added to the task";
    return TRUE;
}
if ($_STATE->status == SELECT_PROJECT) {
    $scripts = array("call_server.js");
} elseif ($_STATE->status == PROPERTIES) {
    $_STATE->msgGreet = $propset->greeting();
    $scripts = $propset->set_script();
} else {
    $scripts = array();
}
EX_pageStart($scripts);
//standard HTML page start stuff - insert SCRIPTS here
EX_pageHead();
//standard page headings - after any scripts
//forms and display depend on process state; note, however, that the state was probably changed after entering
//the Main State Gate so this switch will see the next state in the process:
switch ($_STATE->status) {
    case SELECT_PROJECT:
        echo $projects->set_list();
        break;
        //end SELECT_PROJECT status ----END STATE: EXITING FROM PROCESS----
    //end SELECT_PROJECT status ----END STATE: EXITING FROM PROCESS----
    case SELECT_TASK:
        ?>
  <p>
<form method="post" name="frmAction" id="frmAction_ID" action="<?php 
开发者ID:fortyspokes,项目名称:ProjectLogs,代码行数:31,代码来源:subtask_edit.php

示例2: throw_the_bum_out

            }
            //	if ($_POST["btnSubmit"] != "update") {
            //		throw_the_bum_out(NULL,"Evicted(".__LINE__."): invalid btnSubmit ".$_POST["btnSubmit"]);
            //	}
            if (update_audit()) {
                $_STATE->status = STATE::DONE;
                $_STATE->goback(1);
                //setup for goback
            }
            break 2;
        default:
            throw_the_bum_out(NULL, "Evicted(" . __LINE__ . "): invalid state=" . $_STATE->status);
    }
}
//while & switch
EX_pageStart();
//standard HTML page start stuff - insert SCRIPTS here
if ($_STATE->status == SELECT_PROJECT) {
    echo "<script type='text/javascript' src='" . $EX_SCRIPTS . "/call_server.js'></script>\n";
}
EX_pageHead();
//standard page headings - after any scripts
//forms and display depend on process state; note, however, that the state was probably changed after entering
//the Main State Gate so this switch will see the next state in the process:
switch ($_STATE->status) {
    case SELECT_PROJECT:
        echo $projects->set_list();
        break;
        //end SELECT_PROJECT status ----END STATE: EXITING FROM PROCESS----
    //end SELECT_PROJECT status ----END STATE: EXITING FROM PROCESS----
    case SELECT_TASK:
开发者ID:bbogin,项目名称:sr2s,代码行数:31,代码来源:subtask_edit.php

示例3: EX_pageStart

            $sqlvalues .= ");";
            $_DB->exec($sqlinsert . $sqlvalues);
            $permit->assigned = true;
        } else {
            if ($permit->assigned && !$permit->checked) {
                //delete permit
                $sql = "DELETE FROM " . $_DB->prefix . "c20_person_permit\n\t\t\t\t\tWHERE person_permit_id=" . $permit->person_permit . ";";
                $_DB->exec($sql);
                $permit->assigned = false;
            }
        }
    }
    return TRUE;
}
//-------end function code; begin HTML------------
EX_pageStart(array("call_server.js"));
//standard HTML page start stuff - insert SCRIPTS here
?>
<script language="JavaScript">
LoaderS.push('load_status();');

function load_status() {
  document.getElementById("msgStatus_ID").innerHTML = "<?php 
echo $_STATE->msgStatus;
?>
";
}
</script>
<?php 
EX_pageHead();
//standard page headings - after any scripts
开发者ID:fortyspokes,项目名称:ProjectLogs,代码行数:31,代码来源:assign_permits.php


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