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


PHP HTML::start方法代码示例

本文整理汇总了PHP中HTML::start方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::start方法的具体用法?PHP HTML::start怎么用?PHP HTML::start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HTML的用法示例。


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

示例1: _

 * Show page
 */
$title = _("Add New User");
$focusFormField = "pwd";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Admin") => "../admin/index.php", _("Users") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_user");
unset($links);
echo Form::errorMsg();
/**
 * Edit form
 */
echo HTML::start('form', array('id' => 'userNew', 'method' => 'post', 'action' => '../admin/user_new.php'));
echo Form::hidden("referer", "new");
// to user_validate_post.php
echo Form::hidden("id_member", $formVar["id_member"]);
echo Form::hidden("login", $formVar["login"]);
$action = "new";
require_once "../admin/user_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:user_new_form.php

示例2: _

        $typeValue = OPEN_ADMINISTRATIVE;
        break;
    case "d":
        $title = _("Add New Doctor Information");
        $typeValue = OPEN_DOCTOR;
        break;
}
$focusFormField = "nif";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Admin") => "../admin/index.php", _("Staff Members") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_staff");
unset($links);
echo Form::errorMsg();
/**
 * New form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../admin/staff_new.php?type=' . $memberType));
echo Form::hidden("member_type", $typeValue);
require_once "../admin/staff_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:staff_new_form.php

示例3: editTheme

  document.forms[0].action = "../admin/theme_preview.php";
  document.forms[0].target = "secondary";
  document.forms[0].submit();
}

function editTheme()
{
  document.forms[0].action = "../admin/theme_new.php";
  document.forms[0].target = "";
  document.forms[0].submit();
}
/*]]>*///-->
</script>

<?php 
echo HTML::para(HTML::link(_("Preview Theme"), '#', null, array('onclick' => 'previewTheme(); return false;')) . ' | ' . HTML::link(_("Preload CSS file"), '../admin/theme_preload_css.php', isset($idTheme) ? array('id_theme' => $idTheme, 'copy' => 'Y') : null));
echo HTML::rule();
echo Form::errorMsg();
/**
 * New form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../admin/theme_new.php'));
require_once "../admin/theme_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:theme_new_form.php

示例4: header

    header("Location: " . $returnLocation);
    exit;
}
/**
 * Show page
 */
$title = _("Preload CSS file");
$focusFormField = "css_filename";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Admin") => "../admin/index.php", _("Themes") => "../admin/theme_list.php", strstr($returnLocation, "edit") ? _("Edit Theme") : _("Add New Theme") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_theme");
unset($links);
/**
 * Form
 */
echo HTML::start('form', array('method' => 'post', 'action' => $_SERVER['PHP_SELF'] . ($idTheme ? '?id_theme=' . $idTheme : ''), 'enctype' => 'multipart/form-data'));
$tbody = array();
$row = Form::label("css_filename", _("Path Filename") . ":", array('class' => 'required'));
//$row .= Form::hidden("MAX_FILE_SIZE", "10000");
$row .= Form::file("css_filename", null, array('size' => 50));
$tbody[] = $row;
$tfoot = array(Form::button("preload", _("Submit")) . Form::generateToken());
echo Form::fieldset($title, $tbody, $tfoot);
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
require_once "../layout/footer.php";
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:theme_preload_css.php

示例5: array

if (isset($isMd5) && $isMd5) {
    echo HTML::insertScript('md5.js');
    echo HTML::insertScript('password.php');
}
if (isset($focusFormField) && !empty($focusFormField)) {
    echo HTML::start('script', array('src' => '../js/focus.php?field=' . $focusFormField, 'type' => 'text/javascript'));
    echo HTML::end('script');
}
echo HTML::end('head');
echo HTML::start('body');
require_once "../layout/component.php";
echo HTML::start('div', array('id' => 'wrap'));
echo HTML::start('div', array('id' => 'header'));
echo appLogo();
echo HTML::para(HTML::link(_("Skip over navigation"), '#main', null, array('accesskey' => 2)), array('id' => 'skip_navigation'));
echo shortcuts(isset($tab) ? $tab : null, isset($nav) ? $nav : null);
if (isset($tab)) {
    echo menuBar($tab);
}
echo HTML::end('div');
// #header
echo HTML::rule();
echo HTML::start('div', array('id' => 'main'));
echo HTML::start('div', array('id' => 'content'));
if (defined("OPEN_DEMO") && OPEN_DEMO) {
    echo Msg::info(_("This is a demo version"));
}
/**
 * Display "public" message(s) from controller if available
 */
echo FlashMsg::get();
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:header.php

示例6: _

$title = _("Editar Atendimento");
$titlePage = $patient->getName() . ' [' . $problem->getWordingPreview() . '] (' . $title . ')';
$focusFormField = "wording";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
//$returnLocation = "../medical/problem_view.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient;
$returnLocation = "../medical/problem_view.php";
/**
 * Breadcrumb
 */
$links = array(_("Registro do Atendimento") => "../medical/index.php", $patient->getName() => "../medical/problem_view.php", _("Outras informações") => "../medical/problem_list.php", $problem->getWordingPreview() => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo Form::errorMsg();
/**
 * Edit form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/problem_edit.php'));
echo Form::hidden("id_problem", $formVar["id_problem"]);
echo Form::hidden("last_update_date", $formVar["last_update_date"]);
echo Form::hidden("id_patient", $formVar["id_patient"]);
require_once "../medical/problem_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Importante: Os campos com * são obrigatórios."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
开发者ID:edubort,项目名称:openclinic,代码行数:31,代码来源:problem_edit_form.php

示例7: defined

    defined("OPEN_ENCODING") && OPEN_ENCODING == "UTF-8" ? ob_start("_convert2Utf8") : ob_start();
}
if (strpos($_contentType, "application/xhtml+xml") !== false) {
    // To prevent 'short_open_tag = On' mistake
    echo '<?xml version="1.0" encoding="' . OPEN_ENCODING . '" standalone="no" ?>' . PHP_EOL;
}
echo '<!DOCTYPE html PUBLIC "' . $_docType . '">' . PHP_EOL;
echo HTML::start('html', array('xmlns' => 'http://www.w3.org/1999/xhtml', 'xml:lang' => str_replace("_", "-", OPEN_LANGUAGE), 'dir' => OPEN_DIRECTION));
echo HTML::start('head');
echo HTML::start('meta', array('http-equiv' => 'Content-Type', 'content' => $_contentType), true);
$_titlePage = isset($titlePage) ? $titlePage : (isset($title) && !empty($title) ? $title : "");
/**
 * @since 0.8
 */
$_titlePage .= isset($formError) && count($formError) > 0 && isset($focusFormField) ? " : " . _("Error occurred") : "";
if (defined("OPEN_CLINIC_NAME") && OPEN_CLINIC_NAME) {
    $_titlePage .= ' : ' . OPEN_CLINIC_NAME;
}
echo HTML::tag('title', $_titlePage);
//echo HTML::start('meta', array('http-equiv' => 'Content-Style-Type', 'content' => 'text/css2'), true);
echo HTML::start('meta', array('http-equiv' => 'Cache-Control', 'content' => 'no-store,no-cache,must-revalidate'), true);
echo HTML::start('meta', array('http-equiv' => 'Pragma', 'content' => 'no-cache'), true);
echo HTML::start('meta', array('http-equiv' => 'Expires', 'content' => '-1'), true);
echo HTML::start('meta', array('http-equiv' => 'imagetoolbar', 'content' => 'no'), true);
echo HTML::start('meta', array('name' => 'robots', 'content' => 'noindex,nofollow,noarchive'), true);
echo HTML::start('meta', array('name' => 'MSSmartTagsPreventParsing', 'content' => 'TRUE'), true);
echo HTML::start('meta', array('name' => 'author', 'content' => 'Jose Antonio Chavarría'), true);
echo HTML::start('meta', array('name' => 'copyright', 'content' => '2002-' . date("Y") . ' Jose Antonio Chavarría'), true);
echo HTML::start('meta', array('name' => 'keywords', 'content' => 'OpenClinic, open source, gpl, healthcare, php, mysql, coresis'), true);
echo HTML::start('meta', array('name' => 'description', 'content' => 'OpenClinic is an easy to use, open source, medical records system written in PHP'), true);
开发者ID:edubort,项目名称:openclinic-1,代码行数:30,代码来源:xhtml_start.php

示例8: _showButton

/**
 * void _showButton(string $name, string $value, string $type = "next")
 *
 * Draws button html tag of type submit.
 *
 * @param string $name name of input field
 * @param string $value button value
 * @param string $type (optional) values: "next" (default), "back"
 * @return void
 * @access private
 * @todo helper that returns string (not echo)
 */
function _showButton($name, $value, $type = "next")
{
    $_html = HTML::start('button', array('id' => $name, 'name' => $name, 'type' => 'submit', 'class' => $type, 'onclick' => 'document.forms[0].buttonPressed.value=\'' . $name . '\';'));
    if ($type == "next") {
        $_html .= HTML::tag('span', $value);
        $_html .= HTML::image('../img/arrow_right.png', $value, array('width' => 22, 'height' => 22));
    } elseif ($type == "back") {
        $_html .= HTML::image('../img/arrow_left.png', $value, array('width' => 22, 'height' => 22));
        $_html .= HTML::tag('span', $value);
    }
    $_html .= HTML::end('button');
    echo $_html;
}
开发者ID:edubort,项目名称:openclinic-1,代码行数:25,代码来源:wizard.php

示例9: array

// #main
echo HTML::rule();
echo HTML::start('div', array('id' => 'navigation'));
if (isset($tab) && is_file('../layout/' . $tab . '.php')) {
    include_once "../layout/" . $tab . ".php";
    // ul
}
echo clinicInfo();
echo HTML::end('div');
// #navigation
echo HTML::rule();
echo HTML::start('div', array('id' => 'footer'));
echo logos();
echo sfLinks();
echo miniLogos();
echo HTML::start('div', array('id' => 'app_info'));
$text = HTML::link(_("Powered by OpenClinic"), 'http://openclinic.sourceforge.net/');
if (defined("OPEN_VERSION")) {
    $text .= ' ' . _("version") . ' ' . OPEN_VERSION;
}
echo HTML::para($text);
echo HTML::para(sprintf('Copyright &copy; 2002-%d %s', date("Y"), HTML::link('Jose Antonio Chavarría', 'mailto:CUT-THIS.openclinic&#64;gmail.com', null, array('accesskey' => 9))));
echo HTML::para(sprintf(_("Under the %s"), HTML::link('GNU General Public License', '../home/license.php', null, array('rel' => 'license'))));
if (defined("OPEN_DEMO") && OPEN_DEMO) {
    echo Msg::info(_("This is a demo version"));
}
/**
 * End server page generation time
 */
if (defined("OPEN_DEBUG") && OPEN_DEBUG) {
    $microTime = explode(" ", microtime());
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:footer.php

示例10: sprintf

require_once "../lib/Msg.php";
// include HTML.php
/**
 * Retrieving get var
 */
$_file = $_GET['file'];
/**
 * XHTML Start (XML prolog, DOCTYPE, title page and meta data)
 */
$title = sprintf(_("Source file: %s"), $_file);
require_once "../layout/xhtml_start.php";
echo HTML::start('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => '../css/style.css'), true);
echo HTML::end('head');
$array['id'] = 'viewSource';
if (count($_GET) == 0 || empty($_file)) {
    $array['onload'] = 'window.close();';
}
echo HTML::start('body', $array);
if (isset($_SESSION['auth']['is_admin'])) {
    if (is_file($_file)) {
        highlight_file($_file);
    } else {
        echo Msg::error(_("No file found."));
        echo HTML::para(HTML::link(_("Close Window"), '#', null, array('onclick' => 'window.close(); return false;')));
    }
} else {
    echo Msg::warning(sprintf(_("You are not authorized to use %s tab."), _("Admin")));
    // maybe change
}
echo HTML::end('body');
echo HTML::end('html');
开发者ID:edubort,项目名称:openclinic,代码行数:31,代码来源:view_source.php

示例11: _

$title = _("Dumps");
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Admin") => "../admin/index.php", $title => "");
echo HTML::breadcrumb($links, "icon icon_dump");
unset($links);
echo HTML::para(HTML::link(_("Install dump from file"), '../install/index.php') . ' | ' . HTML::link(_("Optimize Database"), '../admin/dump_optimize_db.php'));
if ($numTables < 1) {
    // @todo message
    require_once "../layout/footer.php";
    exit;
}
echo HTML::insertScript('dump_functions.js');
echo HTML::start('form', array('method' => 'post', 'action' => './dump_process.php'));
$i = 0;
$table = null;
while ($i < $numTables) {
    DUMP_MYSQL_INT_VERSION >= 32303 ? $table[$tables[$i]['Name']] = $tables[$i]['Name'] : ($table[$tables[$i]] = $tables[$i]);
    $i++;
}
$fieldArray = array(Form::select("table_select", $table, null, array('size' => 15)));
unset($table);
$fieldFoot = array(HTML::link(_("Select all"), '#', null, array('id' => 'select_all')) . ' / ' . HTML::link(_("Unselect all"), '#', null, array('id' => 'unselect_all')));
echo Form::fieldset(_("View dump of database"), $fieldArray, $fieldFoot, array('id' => 'dump_tables'));
$fieldArray = null;
$fieldArray[] = Form::radioButton("what", "data", array('id' => 'radio_dump_data', 'checked' => true)) . Form::label("radio_dump_data", _("Structure and data"));
$fieldArray[] = Form::radioButton("what", "structure", array('id' => 'radio_dump_structure')) . Form::label("radio_dump_structure", _("Structure only"));
$fieldArray[] = Form::radioButton("what", "dataonly", array('id' => 'radio_dump_dataonly')) . Form::label("radio_dump_dataonly", _("Data only"));
$fieldArray[] = Form::radioButton("what", "xml", array('id' => 'radio_dump_xml')) . Form::label("radio_dump_xml", _("Export to XML format"));
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:dump_view_form.php

示例12: array

require_once "../layout/header.php";
/**
 * Breadcrumb
 */
if (!isset($_GET["all"])) {
    $links = array(_("Admin") => "../admin/index.php", _("Users") => $returnLocation, $title => "");
} else {
    $links = array(_("Home") => $returnLocation, $title => "");
}
echo HTML::breadcrumb($links, "icon icon_user");
unset($links);
echo Form::errorMsg();
/**
 * Edit form
 */
echo HTML::start('form', array('id' => 'userEdit', 'method' => 'post', 'action' => '../admin/user_edit.php'));
echo Form::hidden("referer", "edit");
// to user_validate_post.php
echo Form::hidden("id_user", $formVar["id_user"]);
echo Form::hidden("id_member", $formVar["id_member"]);
if (isset($_GET["all"])) {
    echo Form::hidden("all", "Y");
}
$action = "edit";
require_once "../admin/user_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
if (isset($_GET["all"])) {
    echo Msg::hint(_("Fill password fields only if you want to change it."));
}
echo HTML::para(HTML::link(_("Return"), $returnLocation));
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:user_edit_form.php

示例13: _

 * Send headers depending on whether the user choosen to download a dump file or not
 */
// No download
if (empty($_POST['as_file'])) {
    /**
     * Show page
     */
    $title = _("Dump result");
    include_once "../layout/header.php";
    /**
     * Breadcrumb
     */
    $links = array(_("Admin") => "../admin/index.php", _("Dumps") => "../admin/dump_view_form.php", $title => "");
    echo HTML::breadcrumb($links, "icon icon_dump");
    unset($links);
    echo HTML::start('pre', array('width' => 80, 'class' => 'sqlcode'));
} else {
    // Defines filename and extension, and also mime types
    if (count($_POST['table_select']) != 1) {
        $filename = OPEN_DATABASE;
    } else {
        $filename = $_POST['table_select'][0];
    }
    $filename .= "-" . OPEN_VERSION . date("_Y-m-d_H-i-s");
    if ($_POST['what'] == 'csv' || $_POST['what'] == 'excel') {
        $ext = 'csv';
        $mimeType = 'text/x-csv';
    } elseif ($_POST['what'] == 'xml') {
        $ext = 'xml';
        $mimeType = 'text/xml';
    } else {
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:dump_process.php

示例14: array

require_once "../layout/header.php";
//$returnLocation = "../medical/connection_list.php?id_problem=" . $idProblem . "&id_patient=" . $idPatient; // controlling var
$returnLocation = "../medical/connection_list.php";
// controlling var
/**
 * Breadcrumb
 */
$links = array(_("Medical Records") => "../medical/index.php", $patient->getName() => "../medical/patient_view.php", _("Medical Problems Report") => "../medical/problem_list.php", $problem->getWordingPreview() => "../medical/problem_view.php", _("View Connection Problems") => $returnLocation, $title => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo $patient->getHeader();
echo $problem->getHeader();
/**
 * Form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/connection_del.php'));
$tbody = array();
$problem = new Problem($idConnection);
$wording = $problem->getWordingPreview();
$tbody[] = Msg::warning(sprintf(_("Are you sure you want to delete connection, %s, from list?"), $wording));
$row = Form::hidden("id_problem", $idProblem);
$row .= Form::hidden("id_connection", $idConnection);
$row .= Form::hidden("id_patient", $idPatient);
$row .= Form::hidden("wording", $wording);
$tbody[] = $row;
$tfoot = array(Form::button("delete", _("Delete")) . Form::generateToken());
$options = array('class' => 'center');
echo Form::fieldset($title, $tbody, $tfoot, $options);
echo HTML::end('form');
echo HTML::para(HTML::link(_("Return"), $returnLocation));
require_once "../layout/footer.php";
开发者ID:edubort,项目名称:openclinic-1,代码行数:31,代码来源:connection_del_confirm.php

示例15: loginCheck

loginCheck(OPEN_PROFILE_ADMINISTRATIVE);
// after clean form vars
//$formVar["last_update_date"] = date("d-m-Y"); //date("Y-m-d");
/**
 * Show page
 */
$title = _("Adicionar novo");
$focusFormField = "nif";
// to avoid JavaScript mistakes in demo version
require_once "../layout/header.php";
/**
 * Breadcrumb
 */
$links = array(_("Dados clínicos") => $returnLocation, _("Adicionar novo beneficiário") => "");
echo HTML::breadcrumb($links, "icon icon_patient");
unset($links);
echo Form::errorMsg();
/**
 * New form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../medical/patient_new.php'));
//echo Form::hidden("last_update_date", $formVar['last_update_date']);
require_once "../medical/patient_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Nota: Os campos com * são obrigatórios."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";
开发者ID:edubort,项目名称:openclinic,代码行数:31,代码来源:patient_new_form.php


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