コード例 #1
0
ファイル: katalog_form.php プロジェクト: epiii/siadu-epiii
$xform->fi('Tahun terbit', iSelect('tahunterbit', $tahun, $data['tahunterbit']));
$xform->fi('Kota', iText('kota', $data['kota'], 'width:100px'));
$xform->fi('ISBN', iText('isbn', $data['isbn'], $xform->fieldws));
$xform->fi('ISSN', iText('issn', $data['issn'], $xform->fieldws));
$s = iSelect('bahasa', $bahasa, $data['bahasa'], 'float:left;margin-right:4px;width:244px');
$s .= '<button title="Bahasa baru..." class="btn" style="float:left;margin-right:4px" onclick="katalog_bahasa_form(\'af\')"><div class="bi_addb">&nbsp;</div></button>';
$xform->fi('Bahasa', $s);
$xform->fi('Seri buku', iText('seri', $data['seri'], $xform->fieldws));
$xform->fi('Volume', iText('volume', $data['volume'], $xform->fieldws));
$xform->fi('Edisi', iText('edisi', $data['edisi'], $xform->fieldws));
$s = iSelect('jenisbuku', $jenisbuku, $data['jenisbuku'], 'float:left;margin-right:4px;width:244px', 'katalog_jenisbuku_sel()');
$s .= '<button title="Jenisbuku baru..." class="btn" style="float:left;margin-right:4px" onclick="katalog_jenisbuku_form(\'af\')"><div class="bi_addb">&nbsp;</div></button>';
$xform->fi('Jenis buku', $s);
$xform->col_begin('50%');
// Kolom kanan lebar 50%
$xform->group_begin('Gambar Sampul Buku');
$xform->fphoto($data['replid'], 'katalog', 140, 200);
$xform->group_begin('Deskripsi Buku');
$xform->fi('Jumlah halaman', iText('halaman', $data['halaman'], 'width:40px') . ' <span style="margin-top:4px">&nbsp;halaman</span>');
$xform->fi('Dimensi', iText('dimensi', $data['dimensi'], $xform->fieldws));
$xform->fi('Sinopsis', iTextArea('deskripsi', $data['deskripsi'], $xform->fieldws, 5));
if ($opf == 'kat') {
    //if($xform->opt=='uf') $xform->back_act='katalog_form_view('.$cid.')';
    $xform->back_act = 'katalog_get()';
} else {
    if ($opf == 'buk') {
        //if($xform->opt=='df') $xform->back_act='katalog_get()';
        $xform->back_act = 'katalog_form_view(' . $cid . ')';
    }
}
$xform->table_end();
コード例 #2
0
ファイル: pembayaran.php プロジェクト: epiii/siadu-epiii
 }
 //jt_name($jtrans);
 $fform->head();
 if ($opt == 'af' || $opt == 'uf') {
     require_once MODDIR . 'control.php';
     // Add or Edit form
     hiddenval('trans_pembayaran', $pid);
     hiddenval('trans_jenis', $jtrans);
     hiddenval('trans_nomer', $r['nomer']);
     hiddenval('trans_ct', $r['ct']);
     $fform->fl('<b>Nomor</b>', '<b><span id="box_trans_nomer">' . $no['nomer'] . '</span></b>');
     $fform->fi('Tanggal', inputTanggal('trans_tanggal', $r['tanggal'], 'transaksi_getnomer()'));
     $fform->fi('Rek. Kas/Bank', iSelect('rekkas', $rekasbank, $r['rekkas'], $fform->rwidths, 'transaksi_getnomer()'));
     $fform->fg('pada');
     $fform->fi('Rek. perkiraan', iSelect('rekitem', $rekening, $r['rekitem'], $fform->rwidths));
     $fform->fa('Uraian', iTextArea('uraian', $r['uraian'], $fform->rwidths, 3));
     $fform->fi('Nominal', iTextC('nominal', $r['nominal'], 'width:120px'));
 } else {
     if ($opt == 'df') {
         // Delete form
         $fform->rheight = '';
         $fform->fc('Apakah anda yakin untuk menghapus data transaksi ini?');
         $fform->fl('Nomor', '<b>' . $r['nomer'] . '</b>');
         $fform->fl('Tanggal', fftgl($r['tanggal']));
         $fform->fl('Uraian', $r['uraian']);
     }
 }
 if ($opt == 'af') {
     $s = '<div style="float:right;margin-right:-20px">' . iCheckx('trans_print', 'Cetak bukti pembayaran', 0, 'float:right') . '</div>';
     //$fform->optional_button=$s;
 }
コード例 #3
0
ファイル: a_stock_rep.php プロジェクト: epiii/siadu-epiii
"</span></td></tr>
		<tr><td>Author: <b><?php 
    echo dbFetch("name", "mstr_author", "W/dcid='" . $f['author'] . "'");
    ?>
</b></td></tr>
		<tr><td>Barcode: <b><?php 
    echo $r['barcode'];
    ?>
</b></td></tr>
		<tr><td>Call number: <b><?php 
    echo $f1['callnumber'];
    ?>
</b></td></tr>
		<tr><td style="padding-top:10px">Note:</td></tr>
		<tr><td><?php 
    echo iTextArea("note", $r['note'], "width:390px", 6);
    ?>
</td></tr>
		</table>
		<table cellspacing="0" cellpadding="3px" width="<?php 
    echo $fwidth - 1;
    ?>
px" style="margin:20px 0 12px 0"><tr>
			<td align="right">
				<input type="button" class="btn" onclick="close_fform()" value="Cancel"/>
				<input type="button" class="btn" onclick="doAddNote(<?php 
    echo $r['dcid'];
    ?>
)" style="width:50px" value="OK"/>
			</td>
		</tr></table>
コード例 #4
0
ファイル: v_stock_init.php プロジェクト: epiii/siadu-epiii
	</div>
</td>
</tr></table>
</div>
<div class="hl2" style="margin-top:10px;margin-bottom:10px">Stock take informations</div>
<form action="soinit.php" method="post">
<table class="stable" cellspacing="0" cellpadding="4px" border="0">
	<tr><td width="120px" align="left">Initalization date:</td><td><?php 
echo fftgl(date("Y-m-d"));
?>
<input type="hidden" name="date" id="date" value="<?php 
echo date("Y-m-d");
?>
"/></td></tr>
	<tr><td  align="left">Stock take name:</td><td><?php 
echo iText('name', '', $txtWidth);
?>
</td></tr>
	<tr><td  align="left" valign="top">Description:</td><td><?php 
echo iTextArea('description', '', $txtWidth, 4);
?>
</td></tr>
	<tr><td  align="left">&nbsp;</td><td align="right">
		<input type="button" class="btn" value="Cancel" onclick="jumpTo('<?php 
echo RLNK;
?>
stockopname.php')"/>
		<input type="submit" class="btnx" value="Start" />
		</td></tr>
</table>
</form>
コード例 #5
0
ファイル: stocktake_init.php プロジェクト: nickohappy7/sister
<?php require_once(MODDIR.'xform/xform.php'); require_once(MODDIR.'control.php');
$opt=gpost('opt'); $cid=gpost('cid'); if($cid=='')$cid=0;

$fmod='stocktake';
$xform=new xform($fmod,$opt,$cid);
$xform->tablewidth='Mulai';
$xform->btn_yes='Mulai';
$xform->tablestyle='float:left;background:#fff;padding:10px;margin-bottom:10px';

stocktake_ptrack(1);

$xform->title('Inisialisasi Stock Opname',0);
$xform->table_begin();
	$xform->col_begin();
	$xform->group_begin('Informasi Stock opname',150);
		$xform->fi('Tanggal mulai',fftgl(date("Y-m-d")));
		hiddenval('tanggal1',date("Y-m-d"));
		$xform->fi('Nama stock opname',iText('nama','',$xform->fieldws));
		$xform->fi('Keterangan',iTextArea('keterangan','',$xform->fieldws,5));
		//hiddenval('keterangan','');
		
$xform->table_end(0);

echo '<div style="float:left;width:410px;text-align:right;margin-bottom:10px;margin-top:10px">';
echo '<button class="btn" style="margin-right:4px" onclick="stocktake_get()">Batal</button>';
echo '<button class="btnz" onclick="stocktake_init(1)">Mulai</button>';
echo '</div>';
?>