本文整理汇总了PHP中iText函数的典型用法代码示例。如果您正苦于以下问题:PHP iText函数的具体用法?PHP iText怎么用?PHP iText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了iText函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: iPopbox
function iPopbox($d, $t, $p = "", $cb = "")
{
if ($p == "") {
$p = $t;
}
$s = "<div id=\"popd_" . $d . "\" style=\"float:left;margin-left:2px\">";
$s .= "<button type=\"button\" class=\"obtna\" title=\"Add new " . $t . "\" onclick=\"open_popbox('" . $d . "')\" style=\"margin-left:2px\">";
$s .= "<img src=\"" . IMGR . "add.png\" /></button>";
$s .= "<div id=\"popb_" . $d . "\" class=\"popblock2\" style=\"display:none;position:fixed;top:0;left:0\" onclick=\"close_popbox('" . $d . "')\"></div>";
$s .= "<div id=\"popx_" . $d . "\" class=\"popbox\" style=\"background-position:0 0;display:none\">";
$s .= "<table cellspacing=\"0\" cellpadding=\"0\" width=\"310px\"><tr height=\"58px\" style=\"padding-top:10px\">";
$s .= "<td width=\"35px\" align=\"right\"><input type=\"button\" class=\"popx\" title=\"Cancel\" onclick=\"close_popbox('" . $d . "')\"/></td>";
$s .= "<td align=\"center\">" . iText("popi_" . $d, '', "width:220px", "New " . $p) . "</td>";
$s .= "<td width=\"35px\" align=\"left\"><input type=\"button\" class=\"popy\" title=\"Add\" onclick=\"popbox_save('" . $d . "',function(){" . $cb . "})\"/></td>";
$s .= "</tr></table>";
$s .= "</div>";
$s .= "</div>";
return $s;
}
示例2: iText
<table cellspacing="0" cellpadding="0" border="0" width=""><tr valign="top">
<td width="450px">
<div class="hl2" style="margin-bottom:6px">Find available book with...</div>
<table class="stable" cellspacing="0" cellpadding="0" border="0" width="450px"><tr>
<td width="*">barcode or title:</td>
<td width="250px"><?php
echo iText('keyw', '', 'width:240px', '', 'onkeyup="lookUp()"');
?>
</td>
<td width="24px" align="left"><input title="find" type="button" class="find21" onclick="lookUp()"/></td>
<td width="20px"></td>
</tr>
<tr>
<td></td><td width="250px" style="padding-top:2px;font:11px <?php
echo SFONT;
?>
;color:#aaa">Use numeric characters to find barcode or alphanumeric to find title.</td><td colspan="2"></td>
</tr>
</table>
<div id="emp_result" style="width:420px;margin-top:20px;height:250px">
<?php
require_once VWDIR . 'vi_loan.php';
?>
</div>
<input type="button" value="Cancel" class="btn" onclick="jumpTo('<?php
echo RLNK;
?>
circulation.php?tab=loan')" style="float:left;margin-top:6px"/>
</td>
<td width="450px" style="padding-left:10px">
<form action="<?php
示例3: app_form_getpegawai
function app_form_getpegawai($d = 'pegawai', $v = 'x', $c = '', $s = 'float:left')
{
$ng = '';
$ag = '';
if ($v == 'x') {
$v = gpost($d);
}
if (is_array($v)) {
$v = $v[$d];
}
if ($v != 0 && $v != '' && $v != '0') {
$q = mysql_query("SELECT * FROM hrd_pegawai WHERE replid='{$v}' LIMIT 0,1");
if (mysql_num_rows($q) > 0) {
$h = mysql_fetch_array($q);
$ng = $h['nip'];
$ag = $h['nama'];
}
}
$k = '<div style="' . $s . '">';
$k .= iText('nippegawai', $ng, 'float:left;width:100px;margin-right:5px;cursor:default', 'nip', 'onclick="aka_getpegawai(\'' . $c . '\')"', 'readonly');
$k .= iText('namapegawai', $ag, 'float:left;width:200px;margin-right:4px;cursor:default', 'nama', 'onclick="aka_getpegawai(\'' . $c . '\')"', 'readonly');
$k .= '<input type="hidden" id="' . $d . '" value="' . $v . '" />';
$k .= '<button class="find21" style="float:left;margin-top:2px" onclick="aka_getpegawai(\'' . $c . '\')"></button>';
$k .= '</div>';
return $k;
}
示例4: satuan_r
$satuan = satuan_r($sat);
$tingkatbuku = tingkatbuku_r($tingb);
}
$fform->ptop = 20;
$fform->head();
if ($opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
hiddenval('katalog', $r['katalog']);
$fform->fg('Data buku');
$fform->fl('Judul', '<b>' . buku_judul($rk['judul']) . '</b>');
hiddenval('nbuku', 0);
$fform->fi('ID buku', iText('idbuku', $r['idbuku'], $fform->rwidths, '', '', 'disabled'));
//hiddenval('idbuku',$r['idbuku']);
$fform->fi('Barkode', iText('barkode', $r['barkode'], $fform->rwidths, '', '', 'disabled'));
$fform->fi('Callnumber', iText('callnumber', $r['callnumber'], $fform->rwidths));
$fform->fi('Sumber', iRadio('sumber1', 'sumber', 0, 'Beli', $r['sumber'], '', 'onclick="katalog_buku_getkode(' . $cid . ')"'));
$fform->fi('', iRadio('sumber2', 'sumber', 1, 'Pemberian', $r['sumber'], '', 'onclick="katalog_buku_getkode(' . $cid . ')"'));
$fform->fi('Harga', iSelect('satuan', $satuan, $sat) . ' ' . iText('harga', $r['harga'], 'width:120px'));
$fform->fi('Tanggal diperoleh', inputTanggal('tanggal', $r['tanggal']));
$fform->fg('Alokasi buku');
$fform->fi('Lokasi', iSelect('tlokasi', $lokasi, $lok, '', 'katalog_buku_getkode(' . $cid . ')'));
$fform->fi('Tingkat', iSelect('ttingkatbuku', $tingkatbuku, $tingb, '', 'katalog_buku_getkode(' . $cid . ')'));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['idbuku']);
}
}
$fform->foot();
}
示例5: form_insertar_externo_validar
public function form_insertar_externo_validar(array $datos = array())
{
// Guardamos la password sin cifrar
$password = \core\Array_Datos::contenido("password", $_REQUEST);
// Datos que no han venido en el formulario
$_REQUEST['clave_confirmacion'] = \core\Random_String::generar(30);
$validacion_catcha = true;
// Iniciamos la variable.
if (\core\Configuracion::$form_insertar_externo_catcha) {
require_once PATH_APP . 'lib/php/recaptcha-php-1.11/recaptchalib.php';
$privatekey = "6Lem1-sSAAAAAPfnSmYe5wyruyuj1B7001AJ3CBh";
$resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
$validacion_catcha = false;
$datos['errores']['validacion'] = 'Error de intruducción del captcha.';
// \core\Distribuidor::cargar_controlador("usuarios", "form_login", $datos);
}
}
if (self::form_insertar_validar($datos) && $validacion_catcha) {
$datos["mensaje"] = "Se ha grabado correctamente el usuario. ";
// Envío del email
$url = \core\URL::generar("usuarios/confirmar_alta/{$datos['values']['id']}/" . urlencode($datos['values']['clave_confirmacion']));
$to = $datos["values"]["email"];
$subject = "Confirmación de alta de usuario en " . TITULO;
$message = "\n<html>\n<head>\n <title>Confirmación cuenta en " . TITULO . "</title>\n</head>\n<body>\n\t<h3>Confirmación cuenta en " . TITULO . "</h3>\n\t<p>Login: <b>{$datos['values']['login']}</b><br/> Password: <b>{$password}</b></p>\n\t<p>Bienvenido a " . TITULO . ". Para confirmar su registro pulse en el siguiente hipervínculo:<br/><a href='{$url}' target='_blank' >{$url}</a>\n\t</p>\n\t<p>En caso de no funcionar puede copiar y pegar el hipervínculo en la barra de direcciones de su navegador.</p>\n</body>\n</html>";
$additional_headers = "From: " . \core\Configuracion::$email_noreply . "\r\n";
$additional_headers .= 'MIME-Version: 1.0' . "\r\n";
$additional_headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$additional_headers .= 'X-Mailer: PHP/' . phpversion();
if ($envio_email = mail($to, $subject, $message, $additional_headers)) {
//$datos["mensaje"] .= "<p>Se ha enviado un correo electrónico a la cuenta de email aportada.</p> <p>Para confimar su alta, consulte su correo electrónico y haga click en el vínculo que se le ha enviado. Si no lo encuentra en la bandeja de entrada <b>revise su spam</b>, por favor.</p>";
$datos["mensaje"] .= iText('mensajeRegistro', 'frases');
} else {
// Si falla el envío del email
$datos["mensaje"] .= "No se ha podido enviar el correo electrónico. Su cuenta está pendiente de confirmar por email, pinchando en el enlace que se envía <a href='{$url}' target='_blank'>{$url}</a>";
}
$this->cargar_controlador('mensajes', 'mensaje', $datos);
} else {
if (!$validacion_catcha) {
usset($datos["errores"]);
$datos["errores"]["validacion"] = "Errores en el código catcha.";
}
\core\Distribuidor::cargar_controlador("usuarios", "form_insertar_externo", $datos);
}
}
示例6: iText
<div style="text-align:left;padding:15px 15px;width:<?php
echo $fwidth;
?>
px">
<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>NIP:</td><td><?php
echo iText('nip', $r['nip'], $iTextFw);
?>
</td></tr>
<tr><td width="<?php
echo $lwidth;
?>
px">Level:</td>
<td><?php
echo iSelect('level', $mstr_level, $r['level'], "width:175px;float:left");
echo iAddMstrx2('level', 'level', 'level name');
?>
</td>
</tr>
<tr><td width="<?php
echo $lwidth;
?>
示例7: dbSFA
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
$r['departemen'] = gpost('departemen');
$r['tahunajaran'] = gpost('tahunajaran');
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fl('Departemen', departemen_name($r['departemen']));
$fform->fl('Departemen', tahunajaran_name($r['tahunajaran']));
$fform->fi('Semester', iText('nama', $r['nama'], 'width:100px'));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
if (intval($r['aktif']) == 1) {
$fform->reg['dlg_del'] = 'Semester ini masih aktif.<br/ >Apakah anda yakin untuk menghapus <idata> <data>?';
$fform->dlg_delw($r['nama']);
} else {
$fform->dlg_del($r['nama']);
}
//$fform->dlg_del($r['nilai']);
}
}
$fform->foot();
}
示例8: iText
$okbtn = $opt == 'af' ? "Save" : "OK";
$gd = 'true';
// Add or Edit form
?>
<tr><td width="<?php
echo $lwidth;
?>
px">Reward:</td><td><?php
echo iText('reward', $r['host'], $iTextFw);
?>
</td></tr>
<tr><td width="<?php
echo $lwidth;
?>
px">By:</td><td><?php
echo iText('rewardby', $r['rewardby'], $iTextFw);
?>
</td></tr>
<tr valign="top"><td>Description:</td><td><?php
echo iTextarea('description', $r['participant'], $iTextFw, 2);
?>
</td></tr>
<tr><td>Date:</td><td><?php
echo inputDate('date', $r['date']);
?>
</td></tr>
<tr><td>Attachment:</td><td>
<button class="btn" onclick="pf_files('af')" style="margin-right:20px;margin-top:10px">
<div style="background:url('<?php
echo IMGR;
?>
示例9: date
$r['tglselesai'] = date("Y-m-d", strtotime("+7 day"));
$r['departemen'] = gpost('departemen');
$r['aktif'] = '1';
$r['kapasitas'] = 1;
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fl('Departemen', departemen_name($r['departemen']), $fform->rwidths);
$fform->fi('Nama periode', iText('proses', $r['proses'], $fform->rwidths));
$fform->fi('Kode awalan', iText('kodeawalan', $r['kodeawalan'], "width:80px"));
$fform->fi('Angkatan', iSelect('angkatan', angkatan_opt($r['departemen']), $r['angkatan']));
//$fform->fi('Tanggal dibuka',inputTanggal('tglmulai',$r['tglmulai']));
//$fform->fi('Tanggal ditutup',inputTanggal('tglselesai',$r['tglselesai']));
$fform->fi('Kapasitas', iText('kapasitas', $r['kapasitas'], "width:40px;text-align:center") . ' siswa');
$fform->fi('Status', iSelect('aktif', array('1' => 'Dibuka', '0' => 'Ditutup'), $r['aktif']));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
if ($r['aktif'] == '1') {
$fform->dlg_delw($r['proses'], 'Periode ini masih aktif.<br/>Semua data calon siswa yang termasuk dalam periode ini juga akan dihapus.', '');
} else {
$fform->dlg_delw($r['proses'], 'Semua data calon siswa yang termasuk dalam periode ini juga akan dihapus.');
}
} else {
if ($opt == 'hf') {
$fform->fh('Periode penerimaan merupakan proses penerimaan yang dibuka untuk tahun ajaran tertentu. Pada umumnya periode pendaftaran dilakukan satu kali dalam satu tahun.<br/>Contoh: "Penerimaan Siswa Baru Tahun 2013"');
}
}
示例10: dbSFA
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
$r = farray('kode', 'nama', 'keterangan');
$r['kelompokbrg'] = gpost('kelompokbrg');
$r['tanggal'] = date("Y-m-d");
$r['unit'] = 1;
$r['satuan'] = 'unit';
}
$fform->dimension(400, 110);
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fl('Jenis barang', kelompokbrg_name($r['kelompokbrg']));
$fform->fi('Kode', iText('kode', $r['kode'], 'width:100px'));
$fform->fi('Nama barang', iText('nama', $r['nama'], $fform->rwidths));
$fform->fi('Jumlah barang', iText('unit', $r['unit'], 'width:100px') . ' satuan: ' . iText('satuan', $r['satuan'], 'width:50px'));
$fform->fi('Tanggal diperoleh', inputTanggal('tanggal', $r['tanggal']));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['nama']);
}
}
$fform->foot();
}
示例11: number_format
<?php
echo number_format($total_acumulado, 2, ",", ".");
?>
€</b>
<?php
number_format(self::ejecutar("carrito", "valor"), 2, ",", ".");
?>
<form id="form_vaciar_carrito" method='post' action='<?php
echo \core\URL::generar("carrito/vaciar");
?>
'>
<button id="boton_vaciar_carrito"type='submit'><?php
echo iText('Vaciar', 'dicc');
?>
</button>
</form>
<button id="boton_comprar" type='button' onclick='window.location.assign("<?php
echo \core\URL::generar("carrito/comprar");
?>
");' ><?php
echo iText('Comprar', 'dicc');
?>
</button>
<?php
} else {
echo "<b><span class='car_nxart'>" . ucfirst(iText('total', 'dicc')) . "</span>\n " . number_format(self::ejecutar("carrito", "valor"), 2, ",", ".") . " €</b>";
}
?>
</div>
示例12: dbUpdate
// edit
$q = dbUpdate($dbtable, $inp, "replid='{$cid}'");
} else {
if ($opt == 'd') {
// delete
$q = dbDel($dbtable, "replid='{$cid}'");
}
}
}
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
$r = farray('tingkat', 'keterangan');
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fi('Nama tingkat', iText('tingkat', $r['tingkat'], $fform->rwidths));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_delw($r['tingkat'], 'Data tingkat pada pegawai akan menjadi kosong.');
}
}
$fform->foot();
}
示例13: iText
<?php
}
?>
</div>
<?php
}
?>
</td>
<td align="right">
<form style="padding:0;margin:0" action="<?php
echo RLNK;
?>
bibliographic.php" method="get">
<input type="hidden" name="tab" value="publisher"/>
<?php
echo iText('q', '', "width:150px", 'Search publisher');
?>
</form>
</td>
</tr></table>
<input type="hidden" id="pagelink" value="<?php
echo $page != '' ? "&page=" . $page : "";
echo $sortby != '' ? "&sortby=" . $sortby : "";
echo $smode != '' ? "&mode=" . $sortmode : "";
echo $keyw != '' ? "&q=" . $keyw : "";
?>
"/>
<?php
if ($ndata > 0) {
?>
<table class="xtable" border="0" cellspacing="1px" width="800px">
示例14: require_once
<?php $ssid=session_id(); require_once(MODDIR.'control.php'); dbDel("pus_tpjm","ssid='$ssid'"); ?>
<table cellspacing="10px" cellpadding="0" border="0" style="border:1px solid rgba(0,0,0,0.3);background:#fcfcff;margin-top:10px;margin-bottom:10px"><tr valign="top"><td>
<div style="float:left;width:500px;margin-right:20px">
<div class="sfont" style="margin-top:0px;height:24px;width:100%"><b>Daftar label item yang dicetak:</b></div>
<div class="tbltopbar" style="width:100%">
<?=iText('sbuku','','width:300px;margin-right:4px','barkode atau judul item','onkeyup="tools_label_buku_list_cari(event)"')?>
<button title="Cari" class="btn" style="margin-right:4px" onclick="tools_label_buku_list_open()"><div class="bi_srcb"> </div></button>
</div>
<div id="box_tools_label_buku" style="float:left;width:100%;margin-bottom:10px">
<?php require_once(APPDIR.'tools_label_buku_get.php'); ?>
</div>
</div>
<div style="float:left;width:250px">
<div class="sfont" style="margin-top:0px;height:24px;width:100%"><b>Pilih informasi yang dicetak:</b></div>
<table cellspacing="0" cellpadding="0">
<tr height="24px"><td><?=iCheckx('cetak_header','Header',1)?></td></tr>
<tr height="24px"><td><?=iCheckx('cetak_callnumber','Callnumber',1)?></td></tr>
<tr height="24px"><td><?=iCheckx('cetak_barkode','Barkode',1)?></td></tr>
</table>
<div class="sfont" style="margin-top:0px;height:24px;width:100%;margin-top:20px"><b>Pengaturan cetak label:</b></div>
<table class="sfont" cellspacing="0" cellpadding="0">
<tr height="30px"><td width="100px">Lebar label:</td><td><?=iText('cetak_lebar',6,'width:30px;text-align:center')?> cm</td></tr>
<tr height="30px"><td>Ukuran kertas:</td><td><?=iSelect('cetak_ukuran',array('F4'=>'F4 210x330mm','A4'=>'A4 210x297mm','A5'=>'A5 148x210mm'),'F4')?></td></tr>
<tr height="30px"><td>Orientasi kertas:</td><td><?=iSelect('cetak_orientasi',array('P'=>'Potrait','L'=>'Landscape'),'P')?></td></tr>
</table>
</div>
<div class="sfont" style="float:left;width:100%;margin-top:10px">
<button class="btn" style="float:left" onclick="tools_label_cancel()">Batal</button>
<button class="btnz" style="float:right" onclick="tools_label_cetak()">Cetak »</button>
</div>
</td></tr></table>
示例15: if
$xform->fi('ISSN',iText('issn',$data['issn'],$xform->fieldws));
$s=iSelect('bahasa',$bahasa,'','float:left;margin-right:4px;width:244px');
$s.='<button title="Add new language..." class="btn" style="float:left;margin-right:4px" onclick="katalog_bahasa_form(\'af\')"><div class="bi_addb"> </div></button>';
$xform->fi('Language',$s);
$xform->fi('Series',iText('seri',$data['seri'],$xform->fieldws));
$xform->fi('Volume',iText('volume',$data['volume'],$xform->fieldws));
$xform->fi('Edition',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="Add new type..." class="btn" style="float:left;margin-right:4px" onclick="katalog_jenisbuku_form(\'af\')"><div class="bi_addb"> </div></button>';
$xform->fi('Type',$s);
$xform->col_begin('50%'); // Kolom kanan lebar 50%
$xform->group_begin('Cover Image');
$xform->fphoto($data['replid'],'katalog',100,140);
$xform->group_begin('Description');
$xform->fi('Number of page',iText('halaman',$data['halaman'],'width:40px').' <span style="margin-top:4px"> page(s)</span>');
$xform->fi('Synopsis',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();
?>