當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DmQuery::get1方法代碼示例

本文整理匯總了PHP中DmQuery::get1方法的典型用法代碼示例。如果您正苦於以下問題:PHP DmQuery::get1方法的具體用法?PHP DmQuery::get1怎麽用?PHP DmQuery::get1使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DmQuery的用法示例。


在下文中一共展示了DmQuery::get1方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: H

#****************************************************************************
#*  Checking for query string flag to read data from database.
#****************************************************************************
if (isset($_GET["code"])) {
    unset($_SESSION["postVars"]);
    unset($_SESSION["pageErrors"]);
    $code = $_GET["code"];
    $postVars["code"] = $code;
    require_once "../classes/BiblioCopy.php";
    require_once "../classes/BiblioCopyQuery.php";
    include_once "../classes/Dm.php";
    include_once "../classes/DmQuery.php";
    include_once "../functions/errorFuncs.php";
    $dmQ = new DmQuery();
    $dmQ->connect();
    $dm = $dmQ->get1("biblio_status_dm", $code);
    $dmQ->close();
}
$postVars["description"] = $dm->getDescription();
?>
<form name="editmatstateform" method="POST" action="../admin/matstate_edit.php">
<input type="hidden" name="code" value="<?php 
echo H($postVars["code"]);
?>
">
<table class="primary">
  <tr>
    <th colspan="2" nowrap="yes" align="left">
      <?php 
echo $loc->getText("admin_materials_delEditmaterialtype");
?>
開發者ID:Giordano-Bruno,項目名稱:GiordanoBruno,代碼行數:31,代碼來源:matstat_edit_form.php

示例2: H

/* This file is part of a copyrighted work; it is distributed with NO WARRANTY.
 * See the file COPYRIGHT.html for more details.
 */
?>
<table class="primary">
<tr>
<th>Field</th>
<th>Value</th>
</tr>
<tr>
<td  align="right" class="primary">Material Type</td>
<?php 
$dmQ = new DmQuery();
$dmQ->connect();
$dm = $dmQ->get1("material_type_dm", $materialCd);
$material_type = $dm->getDescription();
$dmQ->close();
?>
<td  align="Left" class="primary">
<?php 
echo H($material_type);
?>
</td></tr>
<tr>
<td align="right" class="primary">Tag</td>
<td align="Left" class="primary">
<?php 
printInputText("tag", 3, 3, $postVars, $pageErrors);
?>
<input type="button" onClick="javascript:popSecondary('../catalog/usmarc_select.php?retpage=<?php 
開發者ID:AevumDecessus,項目名稱:docker-openbiblio,代碼行數:30,代碼來源:custom_marc_form_fields.php

示例3: H

$loc = new Localize(OBIB_LOCALE, $tab);
require_once "../shared/header.php";
#****************************************************************************
#*  Checking for query string flag to read data from database.
#****************************************************************************
if (isset($_GET["code"])) {
    unset($_SESSION["postVars"]);
    unset($_SESSION["pageErrors"]);
    $code = $_GET["code"];
    $postVars["code"] = $code;
    include_once "../classes/Dm.php";
    include_once "../classes/DmQuery.php";
    include_once "../functions/errorFuncs.php";
    $dmQ = new DmQuery();
    $dmQ->connect();
    $dm = $dmQ->get1("material_type_dm", $code);
    $postVars["description"] = $dm->getDescription();
    $postVars["imageFile"] = $dm->getImageFile();
    $dmQ->close();
} else {
    require "../shared/get_form_vars.php";
}
?>

<form name="editmaterialform" method="POST" action="../admin/materials_edit.php">
<input type="hidden" name="code" value="<?php 
echo H($postVars["code"]);
?>
">
<table class="primary">
  <tr>
開發者ID:AevumDecessus,項目名稱:docker-openbiblio,代碼行數:31,代碼來源:materials_edit_form.php

示例4: H

$loc = new Localize(OBIB_LOCALE, $tab);
require_once "../shared/header.php";
#****************************************************************************
#*  Checking for query string flag to read data from database.
#****************************************************************************
if (isset($_GET["code"])) {
    unset($_SESSION["postVars"]);
    unset($_SESSION["pageErrors"]);
    $code = $_GET["code"];
    $postVars["code"] = $code;
    include_once "../classes/Dm.php";
    include_once "../classes/DmQuery.php";
    include_once "../functions/errorFuncs.php";
    $dmQ = new DmQuery();
    $dmQ->connect();
    $dm = $dmQ->get1("collection_dm", $code);
    $postVars["description"] = $dm->getDescription();
    $postVars["daysDueBack"] = $dm->getDaysDueBack();
    $postVars["dailyLateFee"] = $dm->getDailyLateFee();
    $dmQ->close();
} else {
    require "../shared/get_form_vars.php";
}
?>

<form name="editcollectionform" method="POST" action="../admin/collections_edit.php">
<input type="hidden" name="code" value="<?php 
echo H($postVars["code"]);
?>
">
<table class="primary">
開發者ID:AevumDecessus,項目名稱:docker-openbiblio,代碼行數:31,代碼來源:collections_edit_form.php

示例5: H

$loc = new Localize(OBIB_LOCALE, $tab);
require_once "../shared/header.php";
#****************************************************************************
#*  Checking for query string flag to read data from database.
#****************************************************************************
if (isset($_GET["code"])) {
    unset($_SESSION["postVars"]);
    unset($_SESSION["pageErrors"]);
    $code = $_GET["code"];
    $postVars["code"] = $code;
    include_once "../classes/Dm.php";
    include_once "../classes/DmQuery.php";
    include_once "../functions/errorFuncs.php";
    $dmQ = new DmQuery();
    $dmQ->connect();
    $dm = $dmQ->get1("member_fields_dm", $code);
    $postVars["code"] = $dm->getCode();
    $postVars["description"] = $dm->getDescription();
    $dmQ->close();
} else {
    require "../shared/get_form_vars.php";
}
?>

<form name="editfieldform" method="POST" action="../admin/member_fields_edit.php">
<input type="hidden" name="code" value="<?php 
echo H($postVars["code"]);
?>
">
<table class="primary">
  <tr>
開發者ID:AevumDecessus,項目名稱:docker-openbiblio,代碼行數:31,代碼來源:member_fields_edit_form.php

示例6: H

$loc = new Localize(OBIB_LOCALE, $tab);
require_once "../shared/header.php";
#****************************************************************************
#*  Checking for query string flag to read data from database.
#****************************************************************************
if (isset($_GET["code"])) {
    unset($_SESSION["postVars"]);
    unset($_SESSION["pageErrors"]);
    $code = $_GET["code"];
    $postVars["code"] = $code;
    include_once "../classes/Dm.php";
    include_once "../classes/DmQuery.php";
    include_once "../functions/errorFuncs.php";
    $dmQ = new DmQuery();
    $dmQ->connect();
    $dm = $dmQ->get1("mbr_classify_dm", $code);
    $postVars["description"] = $dm->getDescription();
    $postVars["max_fines"] = $dm->getMaxFines();
    $dmQ->close();
} else {
    require "../shared/get_form_vars.php";
}
?>

<form name="editclassificationform" method="POST" action="../admin/mbr_classify_edit.php">
<input type="hidden" name="code" value="<?php 
echo H($postVars["code"]);
?>
">
<table class="primary">
  <tr>
開發者ID:Giordano-Bruno,項目名稱:GiordanoBruno,代碼行數:31,代碼來源:mbr_classify_edit_form.php


注:本文中的DmQuery::get1方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。