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


PHP xhtml_head函数代码示例

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


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

示例1: printquestionnaires

function printquestionnaires()
{
    global $db;
    //print available questionnaires
    $sql = "SELECT qid,description\n\t\tFROM questionnaires";
    $qs = $db->GetAll($sql);
    xhtml_head(T_("Reorder variables"), true, array("../css/table.css"));
    print "<table class='tclass'><tr><th>" . T_("Questionnaire") . "</th><th></th><th></th><th></th></tr>";
    $c = 1;
    foreach ($qs as $q) {
        print "<tr ";
        if ($c == 1) {
            $c = 0;
        } else {
            $c = 1;
            print "class='odd'";
        }
        print "><td>{$q['description']}</td><td><a href=\"?qid={$q['qid']}\">" . T_("Manual reorder") . "</a></td><td><a href=\"?qid={$q['qid']}&amp;position=position\">" . T_("Reorder by position") . "</a></td><td><a href=\"?qid={$q['qid']}&amp;varname=varname\">" . T_("Reorder by variable name") . "</a></td></tr>";
    }
    print "</table>";
}
开发者ID:bimbam123,项目名称:quexf,代码行数:21,代码来源:reorder.php

示例2: xhtml_head

 *	
 *	queXF is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *	
 *	You should have received a copy of the GNU General Public License
 *	along with queXF; if not, write to the Free Software
 *	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */
include_once "../config.inc.php";
include_once "../db.inc.php";
include '../functions/functions.xhtml.php';
include '../functions/functions.import.php';
xhtml_head(T_("Update banding from XML"));
if (isset($_FILES['bandingxml']) && isset($_POST['qid']) && !empty($_POST['qid'])) {
    $qid = intval($_POST['qid']);
    $a = true;
    $xmlname = $_FILES['bandingxml']['tmp_name'];
    $r = import_bandingxml(file_get_contents($xmlname), $qid, true);
    if ($a) {
        if ($r) {
            print "<h2>" . T_("Successfully loaded banding XML file") . "</h2>";
        } else {
            print "<h2>" . T_("Failed to load banding XML file") . "</h2>";
        }
    }
}
print "<h1>" . T_("Update banding from XML") . "</h1>";
print "<p>" . T_("WARNING: All previous banding will be erased") . "</p>";
开发者ID:ddrmoscow,项目名称:queXF,代码行数:31,代码来源:importbandingxml.php

示例3: foreach

    //Remove columns that are empty
    $count = 2;
    foreach ($outcomesfilled as $key => $val) {
        if ($val == 0) {
            unset($rep[$count]);
            unset($rept[$count]);
        } else {
            $totals[] = $key;
        }
        $count++;
    }
    xhtml_table($overall, $rep, $rept, "tclass", false, $totals);
    print "</br>";
    return true;
}
xhtml_head(T_("Sample call attempt"), true, array("../include/bootstrap/css/bootstrap.min.css", "../css/custom.css"), array("../js/window.js"));
print "<h3 class='form-inline pull-left'>" . T_("Please select a questionnaire") . "&emsp;</h3>";
$questionnaire_id = false;
if (isset($_GET['questionnaire_id'])) {
    $questionnaire_id = intval($_GET['questionnaire_id']);
}
display_questionnaire_chooser($questionnaire_id, array(-1, T_("Overall")), "form-inline clearfix", "form-control");
if ($questionnaire_id || $questionnaire_id == -1) {
    if (sample_call_attempt_report($questionnaire_id, false, false)) {
        if ($questionnaire_id != -1) {
            print "<h3 class='form-inline pull-left'>" . T_("Please select a sample") . "&emsp;</h3>";
            $sample_import_id = false;
            if (isset($_GET['sample_import_id'])) {
                $sample_import_id = bigintval($_GET['sample_import_id']);
            }
            display_sample_chooser($questionnaire_id, $sample_import_id, false, "form-inline clearfix", "form-control");
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:samplecallattempts.php

示例4: T_

			<button id="submit" type="submit" name="import_form" class="btn btn-primary"><i class="fa fa-plus-square-o fa-lg"></i>&emsp;<?php 
        echo T_("Add sample");
        ?>
</button>
		</div>
	</div>
	
	</form>


	<?php 
        xhtml_foot($js_foot);
    } else {
        //need to supply file to upload
        $subtitle = T_("Select file to upload");
        xhtml_head(T_("Import sample") . ":", true, $css, $js_head, false, false, false, $subtitle);
        echo "<a href='' onclick='history.back();return false;' class='btn btn-default'><i class='fa fa-chevron-left fa-lg text-primary'></i>&emsp;" . T_("Go back") . "</a>";
        $ua = $_SERVER['HTTP_USER_AGENT'];
        if (preg_match('/Firefox/i', $ua)) {
            $csv = "text/csv";
        } else {
            $csv = ".csv";
        }
        //print "ua=" . $_SERVER['HTTP_USER_AGENT'];
        ?>

	<form class="form-horizontal col-sm-12 " enctype="multipart/form-data" action="" method="post">
	<fieldset>
	
	<input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />
	
开发者ID:ddrmoscow,项目名称:queXS,代码行数:30,代码来源:import.php

示例5: foreach

    $db->StartTrans();
    $sql = "SELECT operator_id \r\n\t\tFROM case_queue\r\n\t\tWHERE case_queue_id = '{$case_queue_id}'";
    $operator_id = $db->GetOne($sql);
    $sql = "DELETE FROM case_queue\r\n\t\tWHERE case_queue_id = '{$case_queue_id}'";
    $db->Execute($sql);
    $sql = "SELECT case_queue_id\r\n\t\tFROM case_queue\r\n\t\tWHERE operator_id = '{$operator_id}'\r\n\t\tORDER BY sortorder ASC";
    $rs = $db->GetAll($sql);
    $sortorder = 1;
    foreach ($rs as $r) {
        $sql = "UPDATE case_queue\r\n\t\t\tSET sortorder = '{$sortorder}'\r\n\t\t\tWHERE case_queue_id = '{$r['case_queue_id']}'";
        $db->Execute($sql);
        $sortorder++;
    }
    $db->CompleteTrans();
}
xhtml_head(T_("Case status and assignment"), true, $css, $js_head);
echo "<a href='' onclick='history.back();return false;' class='btn btn-default pull-left' ><i class='fa fa-chevron-left text-primary'></i>&emsp;" . T_("Go back") . "</a>\r\n\t\t<i class='fa fa-question-circle fa-3x text-primary pull-right btn' data-toggle='modal' data-target='.inform'></i>";
?>
<div class="modal fade inform" id="inform" tabindex="-1" role="dialog" aria-labelledby="inform" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
		<div class="modal-header">
          <h3 class="modal-title"><small class="text-info"><?php 
echo T_("INFORMATION");
?>
</small></h4>
        </div>
		<div class="modal-body">
			<p><?php 
echo T_("List cases by questionnaire and sample with the ability to assign them to be called next in a queue by a particular operator. <br/>If you assign cases to an operator, it will override the normal scheduling process and call them as soon as the operator is available.");
?>
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:casestatus.php

示例6: xhtml_foot

    //for XHTML
    xhtml_foot();
    $db->CompleteTrans();
    exit;
}
$call_attempt_id = get_call_attempt($operator_id, false);
$case_id = get_case_id($operator_id);
/**
 * Set the state manually if necessary (i.e if VOIP state is playing up)
 */
if (isset($_GET['newstate'])) {
    $ns = bigintval($_GET['newstate']);
    $sql = "UPDATE  `call`\r\n\t\tSET state = '{$ns}'\r\n\t\tWHERE case_id = '{$case_id}'\r\n\t\tAND operator_id = '{$operator_id}'\r\n\t\tAND call_attempt_id = '{$call_attempt_id}'\r\n\t\tAND outcome_id = '0'";
    $db->Execute($sql);
}
xhtml_head(T_("Set outcome"), true, array("include/bootstrap/css/bootstrap.min.css"), array($js, "include/jquery/jquery-1.4.2.min.js"));
$state = is_on_call($operator_id);
function print_endcase($trigger = "")
{
    print "<p><a href='javascript:" . $trigger . "(\"endcase=endcase\")' class='btn btn-primary'>" . T_("End case") . "</a></p>";
}
function print_endwork($trigger = "")
{
    print "<p><a href='javascript:" . $trigger . "(\"endwork=endwork\")' class='btn btn-info'>" . T_("End work") . "</a></p>";
}
switch ($state) {
    case false:
        //no call made
    //no call made
    case 0:
        //not called -- shouldn't come here as we should create requesting call immediately
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:call_interface2.php

示例7: xhtml_head

    $script = "<script type='text/javascript'>\r\n\t\t   \$(document).nap(\r\n\t\t\tfunction() { \r\n\t\t\t\tlocation.replace('" . QUEXS_URL . "?endwork=endwork&auto=auto');\r\n\t\t\t},\r\n\t\t\tfunction() { \r\n\t\t\t\t//do nothing if woken up as shouldn't get here\r\n\t\t\t},\r\n\t\t\t" . AUTO_LOGOUT_MINUTES * 60 . "\r\n\t\t);</script></head><body>";
    $body = false;
}
if ($popupcall) {
    $js[] = "js/popupcallonload.js";
}
if (HEADER_EXPANDER) {
    $js[] = "js/headerexpand_interface2.js";
    $js[] = "js/headerexpandmanual_interface2.js";
} else {
    if (HEADER_EXPANDER_MANUAL) {
        $js[] = "js/headerexpand_interface2.js";
        $js[] = "js/headerexpandmanual_interface2.js";
    }
}
xhtml_head(T_("Case"), $body, array("include/bootstrap/css/bootstrap.min.css", "include/bootstrap/css/bootstrap-theme.min.css", "include/font-awesome/css/font-awesome.css", "css/index_interface2.css", "css/tabber_interface2.css", "include/jquery-ui/jquery-ui.min.css"), $js, false, false, false, false, false);
print $script;
$case_id = get_case_id($operator_id, true);
$sql = "SELECT q.self_complete, q.referral\r\n        FROM questionnaire as q, `case` as c\r\n        WHERE c.case_id = {$case_id} \r\n        AND c.questionnaire_id = q.questionnaire_id";
$scr = $db->GetRow($sql);
$sc = $scr['self_complete'];
$ref = $scr['referral'];
$availability = is_using_availability($case_id);
?>
<div class="container-fluid "> 
	<div class="row ">

		<div id="casefunctions" class="col-sm-2 panel-body">

			<a href="javascript:poptastic('call_interface2.php');" class="btn btn-default btn-block" style="border-radius:15px; color:blue"><strong><?php 
echo T_("Outcome");
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:index_interface2.php

示例8: xhtml_head

 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *	
 *	You should have received a copy of the GNU General Public License
 *	along with queXF; if not, write to the Free Software
 *	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */
/**
 * XHTML functions
 */
include "../functions/functions.xhtml.php";
include "../lang.inc.php";
include "../config.inc.php";
xhtml_head(T_("queXF Admin Functions"), true, array("../css/admin.css"));
?>

<div id="menu">
<h1><?php 
echo T_("queXF Admin Functions");
?>
</h1>
<ul>
<li><h3><?php 
echo T_("Form setup");
?>
</h3>
<ul><li><a href="?page=pagetest.php"><?php 
echo T_("Test form compatibility with queXF");
?>
开发者ID:bimbam123,项目名称:quexf,代码行数:31,代码来源:index.php

示例9: xhtml_head

 *	(at your option) any later version.
 *	
 *	queXF is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *	
 *	You should have received a copy of the GNU General Public License
 *	along with queXF; if not, write to the Free Software
 *	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */
include "../functions/functions.import.php";
include "../functions/functions.xhtml.php";
include "../functions/functions.process.php";
xhtml_head(T_("Monitor ICR process"), true, array("../css/table.css"), false, false);
if (isset($_GET['p'])) {
    $p = intval($_GET['p']);
    if (isset($_GET['kill'])) {
        kill_process($p);
    }
    if (isset($_GET['force_kill'])) {
        end_process($p);
    }
    print "<h1>" . T_("Process") . " {$p}</h1>";
    if (is_process_killed($p)) {
        print "<h3>" . T_("Kill signal sent: Please wait...") . "</h3>";
        print "<p><a href='?force_kill'>" . T_("Mark the proces as killed (i.e. when the server is rebooted)") . "</a></p>";
    } else {
        print "<p><a href='?kill=kill'>" . T_("Kill the running process") . "</a> (" . T_("may take up to a few minutes to take effect") . ")</p>";
    }
开发者ID:bimbam123,项目名称:quexf,代码行数:31,代码来源:icrmonitor.php

示例10: header

<?php

require "config.php";
if (!isset($_GET['path'])) {
    header("Location: ./404.php");
    exit;
} elseif (!file_exists($path = trim($_GET['path']))) {
    header("Location: ./404.php");
    exit;
}
xhtml_head("创建复件");
echo "[<a href=\"./dlym.php?path=" . urlencode(dirname($path)) . "\">返回目录</a>]\n";
if (isset($_GET['yes'])) {
    $to = dirname($path) . "/" . ___basename($path) . "-copy";
    if (file_exists($to)) {
        echo "目标复件已经存在!";
    } else {
        $fs = new filesystem($path);
        if ($fs->cppath($to)) {
            echo "成功为您创建复件!";
        } else {
            echo "无法为您创建复件!";
        }
    }
} else {
    echo "需要复件,<a href=\"?yes&path=" . urlencode($path) . "\">确认创建</a>?";
}
xhtml_footer();
开发者ID:liuguogen,项目名称:weixin,代码行数:28,代码来源:autocp.php

示例11: header

<?php

require "config.php";
if (!isset($_GET['path'])) {
    header("Location: ./404.php");
    exit;
} elseif (!is_file($path = trim($_GET['path']))) {
    header("Location: ./404.php");
    exit;
} else {
    xhtml_head("文件编码转换");
    echo "<div class=\"like\">\n";
    echo "<a href=\"./index.php?path=" . urlencode(dirname($path)) . "\"]>返回目录</a>转换提示\n";
    echo "</div>\n";
    echo "<div class=\"love\">\n";
    if (!function_exists("mb_convert_encoding") || !function_exists("mb_list_encodings")) {
        echo "核心函数库没有被支持!\n";
    } elseif (!is_readable($path)) {
        echo "无法读取输入文件内容!\n";
    } elseif (!isset($_GET['ic']) || !isset($_GET['pc']) || !isset($_GET['save'])) {
        echo "编码转换参数没有设置!\n";
    } elseif (($ic = trim($_GET['ic'])) == "" || ($pc = trim($_GET['pc'])) == "" || ($save = trim($_GET['save'])) == "") {
        echo "编码转换参数不能为空!\n";
    } elseif ($ic == $pc) {
        echo "输入输出编码不能一致!\n";
    } elseif (!in_array($ic, mb_list_encodings()) || !in_array($pc, mb_list_encodings())) {
        echo "选择的编码格式不支持!\n";
    } else {
        if (!strstr($save, "/") && !strstr($save, "\\")) {
            $save = dirname($path) . "/" . $save;
        }
开发者ID:simplesky,项目名称:course,代码行数:31,代码来源:mbconv.php

示例12: bigintval

    $require_operator_id = false;
    if (isset($_POST['require_operator_id'])) {
        $require_operator_id = bigintval($_POST['require_operator_id']);
    }
    make_appointment($respondent_id, $case_id, $contact_phone_id, $call_attempt_id, $day, $month, $year, $start, $end, $require_operator_id);
    $db->CompleteTrans();
    xhtml_head(T_("Appointment made"), true, false, false, "onload='parent.closePopup();'");
    xhtml_foot();
    exit;
}
$js = array("js/window.js");
if (AUTO_LOGOUT_MINUTES !== false) {
    $js[] = "include/jquery/jquery-1.4.2.min.js";
    $js[] = "js/childnap.js";
}
xhtml_head(T_("Create appointment"), false, array("include/bootstrap/css/bootstrap.min.css"), $js);
//select a respondent from a list or create a new one
print "<h4>" . T_("Respondent") . ":";
if (isset($_GET['respondent_id'])) {
    $respondent_id = bigintval($_GET['respondent_id']);
}
display_respondent_list($case_id, isset($respondent_id) ? $respondent_id : false, true);
print "</h4>";
if (isset($_GET['respondent_id']) && $_GET['respondent_id'] == 0) {
    //ability to create a new one
    ?>
	<h4><?php 
    echo T_("Create new respondent:");
    ?>
</h4>
	<form id="addRespondent" method="post" action="">
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:appointment.php

示例13: array

 */
include "config.inc.php";
/** 
 * Authentication
 */
require "auth-interviewer.php";
/**
 * XHTML
 */
include "functions/functions.xhtml.php";
/**
 * Language
 */
include_once "lang.inc.php";
$js = array("js/popup.js", "include/jquery/jquery-1.4.2.min.js", "include/jquery-ui/jquery-ui.min.js");
if (AUTO_LOGOUT_MINUTES !== false) {
    $js[] = "js/childnap.js";
}
xhtml_head(T_("Respondent Selection") . " - " . T_("Business answers"), true, array("include/bootstrap/css/bootstrap.min.css", "css/rs.css"), $js);
print "<p class='rstext well rs'>" . T_("Sorry to bother you, I have called the wrong number") . "</p>";
print "<div class=' '>\r\n\t\t<div class='col-lg-2'><p><a class='btn btn-default' href=\"rs_intro.php\" >" . T_("Go Back") . "</a></p></div>";
$des = $db->GetAll("SELECT description FROM outcome WHERE outcome_id = 16");
print "<div class='col-lg-4'><p><h4 class='text-right'>" . T_("End call with outcome:") . "</h4></p></div>\r\n\t\t\t<div class='col-lg-6'><p><a class='btn btn-primary' ";
if (ALTERNATE_INTERFACE) {
    print "href=\"javascript:parent.location.href = 'index_interface2.php?outcome=16&amp;endcase=endcase'\">";
} else {
    print "href=\"javascript:parent.poptastic('call.php?defaultoutcome=16');\">";
}
print T_($des[0]['description']) . "</a></p></div>";
print "</div>";
xhtml_foot();
开发者ID:ddrmoscow,项目名称:queXS,代码行数:31,代码来源:rs_business.php

示例14: unset

                $db->Execute($sql);
            }
            $c++;
        }
        unset($image);
    }
    if ($error == "") {
        //no errors
        xhtml_head(T_("Set page layout"));
        print "<div>" . T_("Page layout has been updated") . "</div>";
        print "<div><a href='bandajax.php?qid={$qid}'>" . T_("Continue with banding") . "</a></div>";
        xhtml_foot();
        die;
    }
}
xhtml_head(T_("Set page layout"), true, array("../css/dragresize.css", "../css/pagesetup.css"), array("../js/prototype-1.6.0.2.js", "../js/dragresize.js", "../js/pagelayout.js"));
print "<div id='content'>";
print $error;
if (isset($_GET['qid'])) {
    $qid = intval($_GET['qid']);
    $zoom = BAND_DEFAULT_ZOOM;
    if (isset($_GET['zoom'])) {
        $zoom = intval($_GET['zoom']);
    }
    $zoomup = $zoom - 1;
    if ($zoomup < 1) {
        $zoomup = 1;
    }
    $zoomdown = $zoom + 1;
    $sql = "SELECT *\n\t\tFROM pages\n\t\tWHERE qid = {$qid}";
    $pages = $db->GetAssoc($sql);
开发者ID:bimbam123,项目名称:quexf,代码行数:31,代码来源:pagesetup.php

示例15: foreach

    $sql = "DELETE \r\n\t\tFROM operator_process\r\n\t\tWHERE operator_id = {$operator_id}";
    $db->Execute($sql);
    foreach ($_POST as $g => $v) {
        $v = intval($v);
        if (substr($g, 0, 3) == "pid") {
            $auto_code = 0;
            if (isset($_POST["auto" . $v])) {
                $auto_code = 1;
            }
            $sql = "INSERT INTO operator_process (operator_id,process_id,auto_code)\r\n\t\t\t\tVALUES ({$operator_id},{$v},{$auto_code})";
            $db->Execute($sql);
        }
    }
    $db->CompleteTrans();
}
xhtml_head(T_("Assign operators to processes"), true, array("../css/table.css"), array("../js/display.js"));
$operator_id = 0;
if (isset($_GET['operator_id'])) {
    $operator_id = intval($_GET['operator_id']);
}
//Select operator
$sql = "SELECT operator_id as value, description, CASE WHEN operator_id = '{$operator_id}' THEN 'selected=\\'selected\\'' ELSE '' END AS selected\r\n\tFROM operator";
print "<div>" . T_("Select operator:") . "</div>";
display_chooser($db->GetAll($sql), 'operator_id', 'operator_id');
if ($operator_id != 0) {
    print "<div>" . T_("Select processes available to this operator") . "</div>";
    print "<form action='' method='post'>";
    //display a checkbox of all processes
    $sql = "SELECT p.process_id,p.description, CONCAT('<input type=\\'checkbox\\' name=\\'pid', p.process_id, '\\' value=\\'', p.process_id, '\\' ', CASE WHEN op.process_id IS NOT NULL THEN 'checked=\\'checked\\'' ELSE '' END  , '/>') as cbox, CONCAT('<input type=\\'checkbox\\' name=\\'auto', p.process_id, '\\' value=\\'', p.process_id, '\\' ', CASE WHEN (op.process_id IS NOT NULL AND op.auto_code = 1) THEN 'checked=\\'checked\\'' ELSE '' END  , '/>') as abox \r\n\r\n\t\tFROM process as p\r\n\t\tLEFT JOIN operator_process AS op ON (op.operator_id = {$operator_id} AND op.process_id = p.process_id)";
    $rs = $db->GetAll($sql);
    translate_array($rs, array("description"));
开发者ID:ddrmoscow,项目名称:queXC,代码行数:31,代码来源:operatorprocess.php


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