Пример #1
0
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>
		<td width="200px">Kuruluş adına göre ara</td>
		<td width="180px"><input type="text" name="kurulus_adi" /></td>
	</tr>
	<tr>
		<td width="200px">Personel adına göre ara</td>
		<td width="180px"><input type="text" name="personel_adi" /></td>
	</tr>
	<tr>
		<td width="200px">Personel soyadına göre ara</td>
		<td width="180px"><input type="text" name="personel_soyadi" /></td>
	</tr>
	<tr>
		<td width="200px">Denetim sonucuna göre ara</td>

		<td width="180px"><select name="sonuc_id">
			<option value="Seçiniz">Seçiniz</option>
			<?php 
    echo getDenetimSonuclar($db);
    ?>
		</select></td>
	</tr>
	<tr>
		<td width="200px">Denetim sonucu açıklamasına göre ara</td>
		<td width="180px"><input type="text" name="denetim_sonuc" /></td>
	</tr>
<!--	<tr>-->
<!--		<td width="200px">Denetim tarihine göre ara</td>-->
<!--		<td width="180px"><input type="text" id="denetim_tarihi" name="tarih" /><input type="button" value="..." id="denetim_tarihi_button"></input></td>-->
<!--	</tr>-->
	<tr>
		<td colspan="2">Denetim tarihine göre ara</td>
	</tr>
	<tr>
		<td width="180px">Başlangıç <input type="text" size="10" id="denetim_tarih_baslangic" name="denetim_tarih_baslangic" /><input type="button" value="..." id="denetim_tarih_baslangic_button"></input></td>
		<td width="180px">Bitiş <input type="text" size="10" id="denetim_tarih_bitis" name="denetim_tarih_bitis" /><input type="button" value="..." id="denetim_tarih_bitis_button"></input></td>
	</tr>
</table>
<input type="submit" value="Ara"></form>
<script type="text/javascript">//<![CDATA[
// bu script inputtan sonra konmalı, mümünse en alta </body> den önce

var cal = Calendar.setup({
    onSelect: function(cal) { cal.hide() }
});

//cal.manageFields("denetim_tarihi_button", "denetim_tarihi", "%d.%m.%Y");
cal.manageFields("denetim_tarih_baslangic_button", "denetim_tarih_baslangic", "%d.%m.%Y");
cal.manageFields("denetim_tarih_bitis_button", "denetim_tarih_bitis", "%d.%m.%Y");
      
//]]></script>
			<?php 
}
Пример #2
0
    return FALSE;
}
function getDenetciPersoneller($db, $denetimId)
{
    $sql = "SELECT PERSONEL_AD, PERSONEL_SOYAD FROM M_DENETIM_EKIP WHERE DENETIM_ID = ?";
    $personeller = $db->prep_exec($sql, array($denetimId));
    return $personeller;
}
$db =& JFactory::getOracleDBO();
$gorev = isset($_POST['gorev']) ? $_POST['gorev'] : "goster";
$denetimId = isset($_GET['denetimId']) ? $_GET['denetimId'] : "";
if ($gorev == "goster") {
    $denetimRow = getDenetim($db, $denetimId);
    //$personeller = getPersonel($db);
    $kuruluslar = getKuruluslar($db, $denetimRow['DENETIM_KURULUS_ID']);
    $denetimSonuc = getDenetimSonuclar($db, $denetimRow['DENETIM_SONUC_ID']);
    $denetciler = getDenetciPersoneller($db, $denetimId);
    //formGoster($kuruluslar, $personeller, $denetimSonuc, $denetimRow);
    formGoster($kuruluslar, $denetimSonuc, $denetimRow);
} else {
    if ($gorev == "kaydet") {
        denetimKaydet($db, $_POST);
    }
}
function formGoster($kuruluslar, $denetimSonuc, $denetimRow)
{
    ?>

<script type="text/javascript">
	dTables.denetimEkibi = new Array(new Array("text","required", "30"), new Array("text","required", "30"));