本文整理汇总了PHP中FormFactory::readFileFromDB方法的典型用法代码示例。如果您正苦于以下问题:PHP FormFactory::readFileFromDB方法的具体用法?PHP FormFactory::readFileFromDB怎么用?PHP FormFactory::readFileFromDB使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormFactory
的用法示例。
在下文中一共展示了FormFactory::readFileFromDB方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pdfGoster
function pdfGoster($protokolID)
{
$_db =& JFactory::getOracleDBO();
$sql = "SELECT DOSYA\n\t\t\t\tFROM M_PROTOKOL \n\t\t\t\tWHERE PROTOKOL_ID = ?";
$r = $_db->prep_exec_array($sql, array($protokolID));
$file = $r[0];
FormFactory::readFileFromDB($file);
}
示例2: pdfGoster
function pdfGoster($yetkilendirmeID)
{
$_db =& JFactory::getOracleDBO();
$sql = "SELECT DOSYA\n\t\t\t\t FROM M_YETKI \n\t\t\t\t WHERE YETKI_ID = ?";
$r = $_db->prep_exec_array($sql, array($yetkilendirmeID));
$file = $r[0];
FormFactory::readFileFromDB($file);
}
示例3: pdfGoster
function pdfGoster($yeterlilik_id, $id, $revize_no)
{
$_db =& JFactory::getOracleDBO();
switch ($id) {
// case 1:
// $select = "ILK_TASLAK_PDF";
// break;
case 1:
$select = "RESMI_GORUS_ONCESI_PDF";
break;
case 2:
$select = "SEKTOR_KOMITESI_ONCESI_PDF";
break;
case 3:
$select = "YONETIM_KURULU_ONCESI_PDF";
break;
case 4:
$select = "SON_TASLAK_PDF";
break;
}
if ($revize_no == "00" or $revize_no == "") {
$tablo = "M_TASLAK_YETERLILIK";
$sqlpart = "";
} else {
$tablo = "M_YETERLILIK_REVIZYON";
$sqlpart = "AND REVIZYON_NO=" . $revize_no;
}
$sql = "SELECT " . $select . " FROM " . $tablo . " \n\t\t\t WHERE YETERLILIK_ID = ? " . $sqlpart;
$r = $_db->prep_exec_array($sql, array($yeterlilik_id));
$file = $r[0];
FormFactory::readFileFromDB($file);
}
示例4: isset
}
}
$itemId = JRequest::getVar('Itemid');
$itemId = isset($itemId) ? $itemId : JRequest::getVar('prevItemId');
$itemIdStr = isset($itemId) ? '&prevItemId=' . $itemId : '';
$itemIdStrOrj = isset($itemId) ? '&Itemid=' . $itemId : '';
if ($gorev == "goster") {
formGoster($itemIdStr);
} else {
if ($gorev == "hepsi") {
hepsiIleListele($itemIdStrOrj);
} else {
if ($gorev == "indir") {
$file = getFilePath(JRequest::getVar('denetimId'));
if ($file != -1) {
FormFactory::readFileFromDB($file);
}
}
}
}
function formGoster($itemIdStr)
{
$db =& JFactory::getOracleDBO();
?>
<form action="index.php?option=com_denetim_ara<?php
echo $itemIdStr;
?>
"
method="post"><input type="hidden" value="hepsi" name="gorev" />
<table>
<tr>