本文整理匯總了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>