本文整理汇总了PHP中iSelect函数的典型用法代码示例。如果您正苦于以下问题:PHP iSelect函数的具体用法?PHP iSelect怎么用?PHP iSelect使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了iSelect函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tdLabel
echo tdLabel("Marital status");
?>
<td>
<?php
echo iSelect('marital', $mstr_marital, $empp['marital'], "float:left;width:128px");
?>
<?php
echo iAddMstr('marital', 'marital status');
?>
</td></tr>
<tr><td> </td><?php
echo tdLabel("Religion");
?>
<td>
<?php
echo iSelect('religion', $mstr_religion, $empp['religion'], "float:left;width:128px");
?>
<?php
echo iAddMstr('religion', 'religion', 'religion name');
?>
</td></tr>
<tr><td> </td><?php
echo tdLabel("Name of church");
?>
<td><?php
echo iText('churchname', $empp['churchname'], "width:680px");
?>
</td></tr>
<tr><td> </td><?php
echo tdLabel("Address of church");
?>
示例2: iSelect
<tr><td width="<?php
echo $lwidth;
?>
px">Group:</td>
<td><?php
echo iSelect('group', $mstr_group, $r['group'], "width:175px;float:left");
echo iAddMstrx2('group', 'group', 'group name');
?>
</td>
</tr>
<tr><td width="<?php
echo $lwidth;
?>
px">Position:</td>
<td><?php
echo iSelect('position', $mstr_position, $r['position'], "width:175px;float:left");
echo iAddMstrx2('position', 'position', 'position name');
?>
</td>
</tr>
<?php
} else {
if ($opt == 'df') {
$okbtn = "Yes";
$nobtn = " No ";
$gd = 'false';
// Delete form
?>
<tr><td><p class="line150">Are you sure you want to delete "<b><?php
echo $mstr_status[$r['status']];
?>
示例3: app_form_gpost
} else {
// db operation for form : add
$r = app_form_gpost('departemen', 'tahunajaran', 'pegawai', 'pelajaran', 'aktif', 'keterangan');
$r['pelajaran'] = gpost('spelajaran');
$r['aktif'] = '1';
}
$fform->dimension(450);
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
//$fform->fl('Departemen',departemen_name($r['departemen']));
//$fform->fl('Tahun ajaran',tahunajaran_name($r['tahunajaran']));
//$fform->fi('Status',iSelect('aktif',array('1'=>'Aktif','0'=>'Tidak aktif'),$r['aktif']));
//$fform->fa('Kode',iText('kode',$r['kode'],'width:40px'));
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fi('Mata Pelajaran', iSelect('pelajaran', pelajaran_opt(gpost('tahunajaran')), $r['pelajaran']));
$fform->fi('Pegawai', app_form_getpegawai('pegawai', $r));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
hiddenval('aktif', 1);
} else {
if ($opt == 'df') {
// Delete form
if (0 > 0) {
$fform->reg['dlg_del'] = 'Data <idata> masih digunakan. Apakah anda yakin untuk menghapus <idata> <data>?';
$fform->dlg_delw($r['nama'], 'Data-data kelas dan siswa yang termasuk dalam tingkat ini juga akan dihapus. Data yang sudah dihapus tidak dapat dikembalikan.');
} else {
$fform->dlg_del($r['nama']);
}
//$fform->dlg_del($r['nilai']);
}
}
示例4: intval
$tahun[0] = 'tahun:';
$thn = intval(date("Y")) + 5;
for ($th = $thn; $th >= 1980; $th--) {
$tahun[$th] = $th;
}
$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"> </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"> </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"> 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') {
示例5: iText
<table class="stable" cellspacing="0" cellpadding="4px" width="<?php
echo $fwidth;
?>
px">
<?php
if ($opt == 'af' || $opt == 'uf') {
$okbtn = $opt == 'af' ? "Save" : "OK";
$gd = 'true';
// Add or Edit form
?>
<tr><td width="100px">Title:</td><td><?php
echo iText('title', $r['title'], "width:400px");
?>
</td></tr>
<tr><td>Type:</td><td><?php
echo iSelect('type', $mstr_traintype, $r['type'], "float:left");
?>
<div style="position:relative;float:left">
<button class="obtna" title="Add new training type" onclick="open_popbox()" style="margin-left:2px">
<img src="<?php
echo IMGR;
?>
add.png" />
</button>
<div id="popblock" style="display:none;background:rgba(0,0,0,0.1);width:1000px;height:800px;position:absolute;top:-400px;left:-500px" onclick="close_popbox()"></div>
<div id="popbox" style="display:none;width:310px;height:55px;position:absolute;top:20px;left:-141px;background:url('<?php
echo IMGR;
?>
pbox.png') center no-repeat">
<table cellspacing="0" cellpadding="0" width="310px"><tr height="58px" style="padding-top:10px">
<td width="35px" align="right"><button class="popx" title="Cancel" onclick="close_popbox()"></button></td>
示例6: xtable
<?php
require_once MODDIR . 'control.php';
require_once MODDIR . 'xtable/xtable.php';
require_once MODDIR . 'apps/aka.php';
$fmod = 'peminjaman_buku_get_cari';
$xtable = new xtable($fmod);
$keyw = gpost('pskeyword');
$lok = gpost('pslokasi');
$lokasi = lokasi_r($lok);
$PSBar = new PSBar_2(100);
$PSBar->begin();
if (count($lokasi) > 0) {
$PSBar->selection('Lokasi', iSelect('pslokasi', $lokasi, $lok, $PSBar->selws, "peminjaman_buku_get_cari(1)"));
} else {
$PSBar->end();
hiddenval('pslokasi', $lok);
lokasi_warn(0, 'float:left');
$PSBar->pass = false;
}
//$PSBar->selection('Cari item',iTextSrc('pskeyword',$keyw,'float:left~width:250px','barkode atau judul item...',"peminjaman_buku_get_cari(1)"));
$PSBar->end();
if ($PSBar->pass) {
$xtable->btnbar_begin();
echo iTextSrc('pskeyword', $keyw, 'float:left~width:250px', 'cari barkode atau judul item...', "peminjaman_buku_get_cari(1)", 'onkeyup="peminjaman_buku_get_cari_do(event)"');
$xtable->btnbar_end();
if ($keyw != '') {
$t = mysql_query("SELECT pus_buku.*,pus_katalog.judul FROM pus_buku LEFT JOIN pus_katalog ON pus_katalog.replid=pus_buku.katalog WHERE pus_buku.lokasi='{$lok}' AND pus_buku.status='1' " . ($keyw == "" ? "" : " AND (pus_katalog.judul LIKE '%{$keyw}%' OR pus_buku.barkode='{$keyw}') ") . " ORDER BY pus_buku.barkode,pus_katalog.judul");
$xtable->ndata = mysql_num_rows($t);
$xtable->search_info($keyw, 'Hasil pencarian item dengan barkode atau judul "<b>' . $keyw . '</b>".', "E('pskeyword').value='';siswakelas_get_cari(1)");
if ($xtable->ndata > 0) {
示例7: PSBar_2
// Page Selection Bar
$PSBar = new PSBar_2();
$PSBar->begin();
$PSBar->selection_departemen($fmod, $dept);
if (count($tahunajaran) > 0) {
$PSBar->selection('Tahun ajaran', iSelect('tahunajaran', $tahunajaran, $tajar, $PSBar->selws, $fmod . "_get()"));
} else {
$PSBar->end();
hiddenval('tahunajaran', $tajar);
hiddenval('spelajaran', $pel);
tahunajaran_warn(0, 'float:left');
$PSBar->pass = false;
}
if ($PSBar->pass) {
if (count($pelajaran) > 1) {
$PSBar->selection('Pelajaran', iSelect('spelajaran', $pelajaran, $pel, $PSBar->selws, $fmod . "_get()"));
} else {
$PSBar->end();
hiddenval('spelajaran', $pel);
pelajaran_warn(0, 'float:left');
$PSBar->pass = false;
}
}
$PSBar->end();
if ($PSBar->pass) {
$xtable->btnbar_f('add');
if ($xtable->ndata > 0) {
// Table head
if ($pel == 0) {
$xtable->head('Mata pelajaran', 'Nama Guru', 'NIP', 'Keterangan');
} else {
示例8: iSelect
$PSBar->pass = false;
}
if ($PSBar->pass) {
if (count($tingkat) > 0) {
$PSBar->selection('Tingkat', iSelect('pstingkat', $tingkat, $ting, $PSBar->selws, "pendataan_saudara_siswapilih(1)"));
} else {
$PSBar->end();
hiddenval('pstingkat', $ting);
hiddenval('pskelas', $kls);
tingkat_warn(1, 'float:left');
$PSBar->pass = false;
}
}
if ($PSBar->pass) {
if (count($kelas) > 0) {
$PSBar->selection('Kelas', iSelect('pskelas', $kelas, $kls, $PSBar->selws, "pendataan_saudara_siswapilih(1)"));
} else {
$PSBar->end();
hiddenval('pskelas', $kls);
kelas_warn(1, 'float:left');
$PSBar->pass = false;
}
}
$PSBar->end();
if ($PSBar->pass) {
$t = mysql_query("SELECT * FROM aka_siswa WHERE kelas='{$kls}' ORDER BY nama");
$xtable->ndata = mysql_num_rows($t);
if ($xtable->ndata > 0) {
//$xtable->optw='50px';
$xtable->head('NIS', 'NISN', 'Nama');
while ($r = mysql_fetch_array($t)) {
示例9: iText
</td></tr>
<tr style="display:none"><td width="370px" align="left">Call number:</td><td><?php
echo iText('tcallnumber', $r[''], $txtWidth);
?>
</td></tr>
<tr><td align="left">Publish year:</td><td width="370px"><?php
echo inputYear('release', $r['release']);
?>
</td></tr>
<tr><td align="left">Series:</td><td width="370px"><?php
echo iText('series', $r['series'], "width:200px");
?>
</td></tr>
<tr><td align="left">Language:</td><td width="370px">
<?php
echo iSelect('language', $mstr_language, 1, "float:left");
?>
<?php
echo iPopbox('language', 'language name');
?>
</td></tr>
<tr><td align="left"></td><td align="right" style="padding-top:20px">
<div id="formbtn">
<input type="button" class="btn" value="Cancel" onclick="closeNewCatalog()" style="margin-right:5px"/>
<input type="button" class="btnx" value="Save" style="margin-right:35px" onclick="saveForm()"/>
</div>
</td></tr>
</table>
</td><td>
<div id="titlecheck"></div>
</td><td>
示例10: hiddenval
$xtable->foot();
$s = '<div id="tlist_add" style="float:left;margin-top:6px;margin-bottom:6px"><a href="javascript:void(0)" onclick="transaksi_list_add()" class="linkb">Tambah baris perkiraan...</a></div>';
echo $s;
hiddenval('transaksi_list_num', $rs);
echo '</div></td></tr>';
} else {
$rekening = rekening_nokasbank_opt();
$rekkasbank = rekening_kasbank_opt();
$fform->fi('Rek. Kas/Bank', iSelect('rekkas', $rekkasbank, $r['rekkas'], $fform->rwidths));
$fform->fg('pada ' . jt_name($r['jenis']));
$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'));
}
if ($jtrans == JT_OUTCOME) {
$fform->fi('<b>pada anggaran</b>', iSelect('budget', $budget, $r['budget'], $fform->rwidths, 'transaksi_cekbudget()'));
} else {
hiddenval('budget', 0);
}
} 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']);
//$fform->fl('Nominal',fRp($r['nominal']));
}
}
}
示例11: selection_departemen
function selection_departemen($fmod,$dept){
$a=0; $departemen=departemen_r($a);
echo '<tr height="26px"><td width="100px" align="left"><b>Departemen:</b></td>';
if(admin_is_alldept()){
echo '<td width="'.$this->lblw.'">'.iSelect('departemen',$departemen,$dept,"width:".$this->selw,$fmod."_get()").'</td>';
} else {
echo '<td width="150px" align="left"><b>'.departemen_name($dept).'</b><input type="hidden" id="departemen" value="'.$dept.'"/></td>';
}
echo '<td width="*"> </td></tr>';
}
示例12: xtable
<?php
require_once MODDIR . 'control.php';
$fmod = 'tempat';
$xtable = new xtable($fmod);
$lok = gpost('lokasi');
$lokasi = lokasi_r($lok);
if (count($lokasi) > 0) {
// Query
$t = mysql_query("SELECT * FROM sar_tempat WHERE lokasi='{$lok}' ORDER BY nama");
$xtable->ndata = mysql_num_rows($t);
$xtable->btnbar_sth();
?>
<td width="80px" align="left"><b>Lokasi:</b></td>
<td width="120px"><?php
echo iSelect('lokasi', $lokasi, $lok, '', $fmod . "_get()");
?>
</td>
<td align="right">
<?php
$xtable->btnbar_add();
?>
</td>
<?php
$xtable->btnbar_stf();
notifbox();
if ($xtable->ndata > 0) {
// Table head
$xtable->head('Nama Tempat', 'Keterangan');
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
示例13: xtable
$fmod='tools_label_buku_list';
$xtable=new xtable($fmod,'item','',2);
$xtable->search_keyon('kunci=>pus_buku.barkode:EQ|pus_katalog.judul:LIKE-0,2');
$xtable->search_box_pos('l');
$xtable->pageorder="pus_buku.barkode";
$xtable->use_select();
$xtable->select_noopt=true;
$xtable->select_cekfunc="tools_label_buku_list_cek(param)";
$lok=gpost('ff_lokasi');
$lokasi=lokasi_r($lok);
$PSBar = new PSBar_2(100);
$PSBar->begin();
if(count($lokasi)>0){
$PSBar->selection('Lokasi',iSelect('ff_lokasi',$lokasi,$lok,$PSBar->selws,"pengembalian_buku_get_cari(1)"));
} else {
$PSBar->end();
hiddenval('pslokasi',$lok);
lokasi_warn(0,'float:left');
$PSBar->pass=false;
}
$PSBar->end();
if($PSBar->pass){
$xtable->search_box('barkode atau judul item');
$db=new xdb("pus_buku");
$db->field("pus_buku:replid,barkode,idbuku","pus_katalog:judul,callnumber");
$db->join("katalog","pus_katalog");
$db->where_and("pus_buku.lokasi='$lok'");
示例14: xtable
$fmod = 'kegiatan';
$xtable = new xtable($fmod, 'kegiatan akademik');
$dept = gpost('departemen');
$departemen = departemen_r($dept);
if (count($departemen) > 0) {
$tajar = gpost('tahunajaran');
$tahunajaran = tahunajaran_r($tajar, $dept);
// Query
$t = mysql_query("SELECT * FROM aka_kegiatan WHERE tahunajaran='{$tajar}' ORDER BY tanggal1");
$xtable->ndata = mysql_num_rows($t);
// Page Selection Bar
$PSBar = new PSBar_2();
$PSBar->begin();
$PSBar->selection_departemen($fmod, $dept);
if (count($tahunajaran) > 0) {
$PSBar->selection('Tahun ajaran', iSelect('tahunajaran', $tahunajaran, $tajar, "width:" . $PSBar->selw, $fmod . "_get()"));
} else {
$PSBar->end();
hiddenval('tahunajaran', $tajar);
tahunajaran_warn();
exit;
}
$PSBar->end();
$xtable->btnbar_f('add');
if ($xtable->ndata > 0) {
// Table head
$xtable->head('tanggal', 'Kegiatan');
$nom = 1;
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
$xtable->td(fftgl($r['tanggal1']) . ($r['tanggal2'] != $r['tanggal1'] && $r['tanggal2'] != '0000-00-00' ? ' - ' . fftgl($r['tanggal2']) : ''), 200);
示例15: iSelect
<table class="stable24" cellspacing="0" cellpadding="0" style="margin-bottom:10px">
<tr><td width="24px"><input id="ppr0" name="pprint" checked class="iCheck" type="radio" value="0"/></td><td><label for="ppr0">All</label></td></tr>
<tr><td width="24px"><input id="ppr1" name="pprint" class="iCheck" type="radio" value="1"/></td><td><label for="ppr1">Book checked</label></td></tr>
<tr><td width="24px"><input id="ppr2" name="pprint" class="iCheck" type="radio" value="2"/></td><td><label for="ppr2">Book lost with note</label></td></tr>
<tr><td width="24px"><input id="ppr3" name="pprint" class="iCheck" type="radio" value="3"/></td><td><label for="ppr3">Book lost without note</label></td></tr>
</table>
<div class="hl2" style="margin-bottom:10px;margin-top:20px">Print option:</div>
<table class="stable24" cellspacing="0" cellpadding="0" style="margin-bottom:10px">
<tr><td width="24px"><input id="rdat" name="pdat" checked class="iCheck" type="checkbox" value="1"/></td><td><label for="rdat">Print printing date.</label></td></tr>
<tr><td width="24px"><input id="rsum" name="psum" checked class="iCheck" type="checkbox" value="1"/></td><td><label for="rsum">Print summarize.</label></td></tr>
</table>
<table class="stable24" cellspacing="0" cellpadding="0" style="margin-bottom:20px">
<tr><td width="150px">Paper size:</td><td><?php
echo iSelect('psize', array('F4' => 'F4 210x330mm', 'A4' => 'A4 210x297mm'));
?>
</td></tr>
</table>
<table class="stable24" cellspacing="0" cellpadding="0">
<tr>
<!--td width="50px"><input type="button" class="btn" value="Back" style="margin-top:30px" onclick="jumpTo('<?php
echo RLNK;
?>
stockopname.php?tab=history')" /></td-->
<td><input type="submit" class="btnx" value="Generate report" style="margin-top:30px" /></td>
</tr>
</table>
</form>
<?php
//require_once(VWDIR.'v_stock_lost.php');