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


PHP xl_document_category函数代码示例

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


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

示例1: showDocument

function showDocument(&$drow)
{
    global $ISSUE_TYPES, $auth_med;
    $docdate = $drow['docdate'];
    echo "<tr class='text docrow' id='" . htmlspecialchars($drow['id'], ENT_QUOTES) . "' title='" . htmlspecialchars(xl('View document'), ENT_QUOTES) . "'>\n";
    // show date
    echo "<td>" . htmlspecialchars(oeFormatShortDate($docdate), ENT_NOQUOTES) . "</td>\n";
    // show associated issue, if any
    echo "<td>";
    if ($auth_med) {
        $irow = sqlQuery("SELECT type, title, begdate " . "FROM lists WHERE " . "id = ? " . "LIMIT 1", array($drow['list_id']));
        if ($irow) {
            $tcode = $irow['type'];
            if ($ISSUE_TYPES[$tcode]) {
                $tcode = $ISSUE_TYPES[$tcode][2];
            }
            echo htmlspecialchars("{$tcode}: " . $irow['title'], ENT_NOQUOTES);
        }
    } else {
        echo "(" . htmlspecialchars(xl('No access'), ENT_NOQUOTES) . ")";
    }
    echo "</td>\n";
    // show document name and category
    echo "<td colspan='3'>" . htmlspecialchars(xl('Document') . ": " . basename($drow['url']) . ' (' . xl_document_category($drow['name']) . ')', ENT_NOQUOTES) . "</td>\n";
    // skip billing and insurance columns
    if (!$GLOBALS['athletic_team']) {
        echo "<td colspan=5>&nbsp;</td>\n";
    }
    echo "</tr>\n";
}
开发者ID:nitinkunte,项目名称:openemr,代码行数:30,代码来源:encounters.php

示例2: add_node_action_process

 function add_node_action_process()
 {
     if ($_POST['process'] != "true") {
         return;
     }
     $name = $_POST['name'];
     $parent_is = $_POST['parent_is'];
     $parent_name = $this->tree->get_node_name($parent_is);
     $this->tree->add_node($parent_is, $name);
     $trans_message = xl('Sub-category', '', '', ' ') . "'" . xl_document_category($name) . "'" . xl('successfully added to category,', '', ' ', ' ') . "'" . $parent_name . "'";
     $this->assign("message", $trans_message);
     $this->_state = false;
     return $this->list_action();
 }
开发者ID:aaricpittman,项目名称:openemr,代码行数:14,代码来源:C_DocumentCategory.class.php

示例3: sqlQuery

$myrow2 = sqlQuery($query);
if ($myrow2) {
    $parentId = $myrow2['id'];
    $query = "SELECT id, name FROM categories WHERE parent='{$parentId}'";
    $resNew1 = sqlStatement($query);
    while ($myrows3 = sqlFetchArray($resNew1)) {
        $categoryId = $myrows3['id'];
        $nameDoc = $myrows3['name'];
        $query = "SELECT documents.date, documents.id " . "FROM documents " . "INNER JOIN categories_to_documents " . "ON categories_to_documents.document_id=documents.id " . "WHERE categories_to_documents.category_id='{$categoryId}' " . "AND documents.foreign_id='{$pid}' " . "ORDER BY documents.date DESC";
        $resNew2 = sqlStatement($query);
        $counterFlag = false;
        //flag used to check for empty categories
        while ($myrows4 = sqlFetchArray($resNew2)) {
            $dateTimeDoc = $myrows4['date'];
            $idDoc = $myrows4['id'];
            echo "<br>";
            echo "<a href='{$web_root}/controller.php?document&retrieve&patient_id={$pid}&document_id=" . $idDoc . "&as_file=true'>" . xl_document_category($nameDoc) . "</a> " . $dateTimeDoc;
            $counterFlag = true;
        }
        // if no associated docs with category then show it's empty
        if (!$counterFlag) {
            echo "<br>";
            echo $nameDoc . " <span style='color:red;'>[" . xl('EMPTY') . "]</span>";
        }
    }
}
?>
</div>
  </body>
</html>
开发者ID:mindfeederllc,项目名称:openemr,代码行数:30,代码来源:advancedirectives.php

示例4: sqlStatement

        $query = "SELECT id, name FROM categories WHERE parent=?";
        $resNew1 = sqlStatement($query, array($parentId));
        while ($myrows3 = sqlFetchArray($resNew1)) {
            $categoryId = $myrows3['id'];
            $nameDoc = $myrows3['name'];
            $query = "SELECT documents.date, documents.id " . "FROM documents " . "INNER JOIN categories_to_documents " . "ON categories_to_documents.document_id=documents.id " . "WHERE categories_to_documents.category_id=? " . "AND documents.foreign_id=? " . "ORDER BY documents.date DESC";
            $resNew2 = sqlStatement($query, array($categoryId, $pid));
            $limitCounter = 0;
            // limit to one entry per category
            while (($myrows4 = sqlFetchArray($resNew2)) && $limitCounter == 0) {
                $dateTimeDoc = $myrows4['date'];
                // remove time from datetime stamp
                $tempParse = explode(" ", $dateTimeDoc);
                $dateDoc = $tempParse[0];
                $idDoc = $myrows4['id'];
                echo "<a href='{$web_root}/controller.php?document&retrieve&patient_id=" . htmlspecialchars($pid, ENT_QUOTES) . "&document_id=" . htmlspecialchars($idDoc, ENT_QUOTES) . "&as_file=true' onclick='top.restoreSession()'>" . htmlspecialchars(xl_document_category($nameDoc), ENT_NOQUOTES) . "</a> " . htmlspecialchars($dateDoc, ENT_NOQUOTES);
                echo "<br>";
                $limitCounter = $limitCounter + 1;
                $counterFlag = true;
            }
        }
    }
    if (!$counterFlag) {
        echo "&nbsp;&nbsp;" . htmlspecialchars(xl('None'), ENT_NOQUOTES);
    }
    ?>
      </div>
 <?php 
}
// close advanced dir block
// This is a feature for a specific client.  -- Rod
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:demographics.php

示例5: xl

xl('Documents', 'e');
?>
</span>:<br>
<ul>
<?php 
// show available documents
$db = $GLOBALS['adodb']['db'];
$sql = "SELECT d.id, d.url, c.name FROM documents AS d " . "LEFT JOIN categories_to_documents AS ctd ON d.id=ctd.document_id " . "LEFT JOIN categories AS c ON c.id = ctd.category_id WHERE " . "d.foreign_id = " . $db->qstr($pid);
$result = $db->Execute($sql);
if ($db->ErrorMsg()) {
    echo $db->ErrorMsg();
}
while ($result && !$result->EOF) {
    echo "<li class='bold'>";
    echo '<input type="checkbox" name="documents[]" value="' . $result->fields['id'] . '">';
    echo '&nbsp;&nbsp;<i>' . xl_document_category($result->fields['name']) . "</i>";
    echo '&nbsp;&nbsp;' . xl('Name') . ': <i>' . basename($result->fields['url']) . "</i>";
    echo '</li>';
    $result->MoveNext();
}
?>
</ul>
</form>

<input type="button" class="genreport" value="<?php 
xl('Generate Report', 'e');
?>
" />&nbsp;
<input type="button" class="genpdfrep" value="<?php 
xl('Download PDF', 'e');
?>
开发者ID:jatin-52,项目名称:erm,代码行数:31,代码来源:patient_report.php

示例6: sqlStatement

                   "ON categories_to_documents.document_id=documents.id " .
                   "WHERE categories_to_documents.category_id=? " .
                   "AND documents.foreign_id=? " .
                   "ORDER BY documents.date DESC";
              $resNew2 = sqlStatement($query, array($categoryId, $pid) );
              $limitCounter = 0; // limit to one entry per category
              while (($myrows4 = sqlFetchArray($resNew2)) && ($limitCounter == 0)) {
                  $dateTimeDoc = $myrows4['date'];
              // remove time from datetime stamp
              $tempParse = explode(" ",$dateTimeDoc);
              $dateDoc = $tempParse[0];
              $idDoc = $myrows4['id'];
              echo "<a href='$web_root/controller.php?document&retrieve&patient_id=" .
                    htmlspecialchars($pid,ENT_QUOTES) . "&document_id=" .
                    htmlspecialchars($idDoc,ENT_QUOTES) . "&as_file=true' onclick='top.restoreSession()'>" .
                    htmlspecialchars(xl_document_category($nameDoc),ENT_NOQUOTES) . "</a> " .
                    htmlspecialchars($dateDoc,ENT_NOQUOTES);
              echo "<br>";
              $limitCounter = $limitCounter + 1;
              $counterFlag = true;
              }
          }
          }
          if (!$counterFlag) {
              echo "&nbsp;&nbsp;" . htmlspecialchars(xl('None'),ENT_NOQUOTES);
          } ?>
      </div>
 <?php  }  // close advanced dir block
 
	// This is a feature for a specific client.  -- Rod
	if ($GLOBALS['cene_specific']) {
开发者ID:jayvicson,项目名称:openemr,代码行数:31,代码来源:demographics.php

示例7: load_tree

 function load_tree()
 {
     $root = $this->_root;
     $tree = array();
     $tree_tmp = array();
     //get the left and right value of the root node
     $sql = "SELECT * FROM " . $this->_table . " WHERE id='" . $root . "'";
     if ($this->root_type == ROOT_TYPE_NAME) {
         $sql = "SELECT * FROM " . $this->_table . " WHERE name='" . $root . "'";
     }
     $result = $this->_db->Execute($sql) or die("Error: " . $this->_db->ErrorMsg());
     $row = array();
     if ($result && !$result->EOF) {
         $row = $result->fields;
     } else {
         $this->tree = array();
     }
     // start with an empty right stack
     $right = array();
     // now, retrieve all descendants of the root node
     $sql = "SELECT * FROM " . $this->_table . " WHERE lft BETWEEN " . $row['lft'] . " AND " . $row['rght'] . " ORDER BY parent,name ASC;";
     $result = $this->_db->Execute($sql);
     $this->_id_name = array();
     while ($result && !$result->EOF) {
         $ar = array();
         $row = $result->fields;
         //create a lookup table of id to name for every node that will end up in this tree, this is used
         //by the array building code below to find the chain of parents for each node
         // ADDED below by BM on 06-2009 to translate categories, if applicable
         if ($this->_table == "categories") {
             $this->_id_name[$row['id']] = array("id" => $row['id'], "name" => xl_document_category($row['name']), "parent" => $row['parent']);
         } else {
             $this->_id_name[$row['id']] = array("id" => $row['id'], "name" => $row['name'], "parent" => $row['parent']);
         }
         // only check stack if there is one
         if (count($right) > 0) {
             // check if we should remove a node from the stack
             while ($right[count($right) - 1] < $row['rght']) {
                 array_pop($right);
             }
         }
         //set up necessary variables to then determine the chain of parents for each node
         $parent = $row['parent'];
         $loop = 0;
         //this is a string that gets evaled below to create the array representing the tree
         $ar_string = "[\"" . $row['id'] . "\"] = \$row[\"value\"]";
         //if parent is 0 then the node has no parents, the number of nodes in the id_name lookup always includes any nodes
         //that could be the parent of any future node in the record set, the order is deterministic because of the algorithm
         while ($parent != 0 && $loop < count($this->_id_name)) {
             $ar_string = "[\"" . $this->_id_name[$parent]['id'] . "\"]" . $ar_string;
             $loop++;
             $parent = $this->_id_name[$parent]['parent'];
         }
         $ar_string = '$ar' . $ar_string . ";";
         //echo $ar_string;
         //now eval the string to create the tree array
         //there must be a more efficient way to do this than eval?
         eval($ar_string);
         //merge the evaled array with all of the already exsiting tree elements,
         //merge recursive is used so that no keys are replaced in other words a key
         //with a specific value will not be replace but instead that value will be turned into an array
         //consisting of the previous value and the new value
         $tree = array_merge_n($tree, $ar);
         // add this node to the stack
         $right[] = $row['rght'];
         $result->MoveNext();
     }
     $this->tree = $tree;
 }
开发者ID:aaricpittman,项目名称:openemr,代码行数:69,代码来源:Tree.class.php


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