本文整理汇总了PHP中divc函数的典型用法代码示例。如果您正苦于以下问题:PHP divc函数的具体用法?PHP divc怎么用?PHP divc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了divc函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: make_menus_rb
function make_menus_rb($arr, $here, $open, $o)
{
static $i;
$i++;
//if($open)$i=$open;
static $a;
$a++;
//$tr=str_pad('►',$a+7,'-',STR_PAD_LEFT);
$css = '" style="padding:0 0 0 32px;';
$csa = '" style="list-style-type:none;';
//if($open)$i='x'.$i;
if (is_array($arr)) {
foreach ($arr as $k => $v) {
$o++;
$re = '';
//$a=$i.$o;
if (is_array($v)) {
$nb = btn('txtsmall2', '(' . count($v) . ')');
$re = balc("li", $csa, '├–' . good_gb($k, $i, '►') . ' ' . $nb);
$re .= make_menus_rb($v, '', 0, 0);
} elseif ($open) {
$re .= balc("li", $csa, '├– ' . lj('', 'popup_popart__3_' . $k . '_3', suj_of_id($k)));
}
if ($re) {
$ret .= divd('tn' . $k, $re);
}
}
}
$a--;
return divc($css, $ret);
}
示例2: environ_build
function environ_build($id, $o)
{
req('spe,art');
//,mod,pop,tri
$ret = environ_art($id);
$ib = ib_of_id($id);
if ($ib) {
$ret .= divc('', divc('txtcadr', 'parent') . environ_art($ib));
}
$r = art_tags($id);
//pr($r);
if ($r) {
foreach ($r as $k => $v) {
foreach ($v as $ka => $va) {
$ret .= divc('txtcadr', $ka);
$rb = tag_arts($ka, $k, 7);
if ($rb) {
foreach ($rb as $kb => $vb) {
$ret .= environ_art($kb);
}
}
}
}
}
$r = art_opts($id);
//pr($r);
foreach ($r as $k => $v) {
if (is_numeric($v)) {
$t = divc('txtcadr', $k);
$d = environ_art($v);
$ret .= divc('', $t . $d);
}
}
return $ret;
}
示例3: radio_edit
function radio_edit($nod, $dr, $md, $id = '')
{
$id = $id ? $id : $_SESSION['read'];
$nd = 'radio' . $id;
if (!$nod) {
$nod = $_SESSION['qb'] . '_' . $nd;
}
$nodb = str_replace('_', '*', $nod);
if ($dr) {
$ret .= radio_build($dr, $nod);
}
$r = msql_read('radio', $nod, '');
$ret .= msqlink('radio', $_SESSION['qb'] . '_' . $nd);
if ($r[$md]) {
foreach ($r[$md] as $k => $v) {
$ky .= $md . '.' . $k . '|';
$edit .= input2('text', '"id="' . $md . '.' . $k, $v) . btn('txtsmall', $r['_menus_'][$k]) . br();
}
$edit .= ljb('popbt', 'SaveR', 'popup_radiosav_' . $nodb . '__' . $k . '\',\'' . $ky, 'save');
}
$ret .= divc('edit', $edit);
if ($r) {
foreach ($r as $k => $v) {
foreach ($v as $ka => $va) {
$datas[$k][] = $va;
}
if ($k != '_menus_' && $k != $md) {
$datas[$k][] = ljb('popbt', 'SaveJ', 'popup_radioedit___' . $nodb . '__' . $k, 'edit');
}
}
}
$ret .= make_divtable($datas);
return popup('build_playlist', $ret);
}
示例4: bub_ucom_btn
function bub_ucom_btn()
{
$j = 'sjtime(\'ucom\',\'socket_ucom_ucom_url\');';
$js = 'onClick="' . $j . '" onContextMenu="' . $j;
$ret = autoclic('ucom" id="ucom" ' . $js, 'command', 16, '100', '');
return divc('search', $ret);
}
示例5: products
function products($r, $id)
{
foreach ($r as $k => $v) {
$ret .= affiche_prod($k, $id);
}
return divd('shopplace', $ret) . divc("clear", "");
}
示例6: patch_tags
function patch_tags()
{
$table["_meta"] = '
CREATE TABLE IF NOT EXISTS `' . ses('qd') . '_meta` (
`id` int(7) NOT NULL AUTO_INCREMENT,
`cat` varchar(255) collate latin1_general_ci NOT NULL,
`tag` varchar(255) collate latin1_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;';
/*
$table["_meta-id"]='
ALTER TABLE `'.ses('qd').'_meta`
ADD PRIMARY KEY (`id`);';*/
$table["_meta_art"] = '
CREATE TABLE IF NOT EXISTS `' . ses('qd') . '_meta_art` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`idart` int(7) NOT NULL,
`idtag` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;';
/*
$table["_meta_art-id"]='
ALTER TABLE `'.ses('qd').'_meta_art`
ADD PRIMARY KEY (`id`);';*/
foreach ($table as $k => $sql) {
$req = mysql_query($sql) or die(mysql_error());
$ret .= divc('', ses('qd') . '' . $k . ': created');
}
$ret .= lka('/plug/tagpatch/', 'Apply patch to fill the new databases (click on each links)');
return $ret;
}
示例7: plug_tags
function plug_tags($p, $o)
{
req('mod,spe');
if ($_GET['sources']) {
$r = sql('mail', 'qda', 'k', '');
$go = 'source';
//source
foreach ($r as $k => $v) {
if ($k != 'mail' && trim($k)) {
$reb[preplink($k)] += 1;
}
}
} else {
$cat = $p ? $p : 'tag';
//$reb=tags_list($cat);
$ra = sql('idtag,idart', 'qdta', 'k', '');
arsort($ra);
$rb = sql('id,tag', 'qdt', 'kv', 'cat="' . $cat . '"');
arsort($ra);
foreach ($ra as $k => $v) {
if ($rb[$k]) {
$reb[$rb[$k]] = $v;
}
}
}
if ($o) {
$ret = tags_cloud($reb, 12, 27, ' ', $cat);
} else {
$ret = tg_list($reb, $go);
}
return divc('txtcadr', count($reb) . ' ' . ($p ? $p : 'Tags')) . $ret;
}
示例8: smsreader
function smsreader($r, $p, $o)
{
$o = '+' . $o;
foreach ($r as $k => $v) {
$numbr = $v[0] ? $v[0] : $v[1];
$numb = substr($numbr, 1);
$day = $v[2] . $v[3] . $v[4] . $v[5] . $v[6] . $v[7];
if ($v[7]) {
$time = mktime($v[5], $v[6], $v[7], $v[3], $v[4], $v[2]);
}
if ($v[0] && $v[0] == $o or $v[1] && $v[1] == $o) {
//szFromNumber
//$day=$v['uYear'].$v['uMonth'].$v['uDay'].$v['uHour'].$v['uMinute'].$v['uSecond'];
if ($time) {
$realday = mkday($time, 'ymd.hi');
}
$ret .= $day . br() . $v[8] . br() . hr();
$who = ($v[0] ? 'From' : 'To') . ':' . $numbr;
$rb[$time] = divc('panel', $who . ', ' . $realday . br() . divc('justy', $v[8]));
} else {
$rb[$time] .= lkc('', '/plugin/smsreader/' . $p . '/' . $numb, $numb) . ' ';
}
}
ksort($rb);
//p($rb);
$ret = implode(hr(), $rb);
//echo $ret;
return $ret;
}
示例9: html_menu
function html_menu($p, $o, $rid)
{
$j = $rid . '_plug__2_html_html*j___inp';
$sj = 'SaveJ(\'' . $j . '\')';
$ret = divc('" onkeyup="' . $sj . '" onclick="' . $sj, txarea('inp', $p, 60, 10, atc('console'))) . ' ';
//$ret.=lj('',$j,picto('reload'));
return $ret;
}
示例10: uds_btn
function uds_btn($r)
{
if ($r[5]) {
//$lk=lka('/read/'.$r[5],picto(url)).' ';
$lk = lj('', 'popup_site___read_' . $r[5], picto(url));
}
return hr() . bal('b', $r[4]) . ' (' . $r[1] . ') ' . $lk . br() . divc('justy', $r[6]);
}
示例11: umwords_menu
function umwords_menu($p, $o, $rid)
{
$ratio = 50;
$n = sql('count(id)', 'qda', 'v', 'nod="ummo"');
$n = ceil($n / $ratio);
for ($i = 0; $i < $n; $i++) {
$ret .= lj('', $rid . '_plug__3_umwords_umwords*build*liaisons_' . $i, $i) . ' ';
}
return divc('nbp', $ret);
}
示例12: np_sav
function np_sav($d, $id)
{
$ret = hidden('', 'cka', 'm' . $d);
for ($i = 1; $i <= 9; $i++) {
$c = $i == $d ? 'active' : '';
$ret .= ljb('' . $c . '" id="ckb' . $i, 'mem_storage', $id . '_m' . $i . '_1_1_ckb' . $i . '_memnu', $i);
}
$ret .= ljb('" id="ckc', 'mem_storage', $id . '_cka__1_ckc', nms(57));
$ret .= lj('', 'popup_plup___pad_pad*write___' . $id . '', picto('export'));
return divc('nb_pages', divd('memnu', $ret . hlpbt('memstorage')));
}
示例13: pet_confirm
function pet_confirm($r, $nod, $id)
{
$arr = $r[$_GET['confirm']];
if ($arr[6] == 1) {
return pet_hlp('alert_exists');
} else {
$arr[6] = 1;
}
modif_vars('users', $nod, $arr, $_GET['confirm']);
return divc('txtalert', pet_hlp('confirm_after')) . br();
}
示例14: plug_deploy
function plug_deploy($deploy)
{
$qb = $_SESSION['qb'];
$USE = $_SESSION['USE'];
$raed = suj_of_id($deploy);
$nl = $_GET['nl'] ? $_GET['nl'] : "nl";
if ($deploy && $USE) {
//prep
list($qauth, $subj) = sql('name,suj', 'qda', 'r', 'id="' . $deploy . '"');
$msg = sql('msg', 'qdm', 'v', 'id="' . $deploy . '"');
if ($USE == $qauth or auth(5)) {
$http = host();
if (!$_POST['dpl']) {
reqp('mail');
$qmail = mail_list_tosend();
$ret .= form("/?read={$deploy}&deploy={$deploy}&nl=nlb", txarea('dpl" maxlength="1000', $qmail, 40, 10) . br() . checkbox("dpf", "ok", "html", 1) . checkbox("multiple", "ok", "each_one", 1) . input2('submit', "send", nms(50), 'popbt'));
} else {
$htacc = urlread($deploy);
$_SESSION['nl'] = $nl;
//deploy
if ($_POST['dpf'] == "ok") {
$mail_format = "html";
$txt = format_txt($msg, $nl, $deploy);
$txt = html_entity_decode($txt);
$txt = str_replace('href="/', 'href="' . $http . '/', $txt);
$msg = lkc("", $http . $htacc, bal("h2", $subj));
$msg .= divc("panel justy", $txt);
} else {
$mail_format = "txt";
$msg = clean_internaltag($msg);
$msg = html_entity_decode($msg);
}
$_SESSION['nl'] = "";
//send
$sender = sql('mail', 'qdu', 'v', 'name="' . $USE . '"');
$lstm = str_replace("\n", ",", $_POST['dpl']);
$lstm = str_replace("\r", ",", $lstm);
$listmail = explode(",", trim($lstm));
if ($_POST['multiple'] == "ok" && is_array($listmail)) {
$sentto = send_mail_r($listmail, $mail_format, $qb . ' :: ' . $raed, $msg, $sender, $htacc);
} else {
$sentto = $_POST['dpl'];
$vm = str_replace(array(",", ";", "\n", " "), ",", $sentto);
send_mail($mail_format, $vm, $qb . ' :: ' . $raed, $msg, $sender, $htacc);
}
$ret .= lkc("popbt", '/?read=' . $deploy, 'article ' . $deploy . ' sent to: ' . $sentto);
}
} else {
$ret .= btn("popdel", "forbidden");
}
}
//if($_POST['dpl'])return $ret;
return $ret;
}
示例15: menu
static function menu($p, $o, $rid)
{
$ret = inp('inp', $p ? $p : 1) . ' ';
$ret .= lj('', $rid . '_app___slides_j__' . $rid . '_inp', picto('reload')) . ' ';
if (auth(6)) {
$ret .= lj('', 'popup_plupin___msqedit_slides*' . $p . '_val', picto('edit')) . ' ';
$j = 'popup_msqledit___users_' . ajx(ses('nodslid')) . '_';
$ret .= lj('', $j . $p . '_1', picto('editxt')) . ' ';
$ret .= lj('', 'popup_plup___msqedit_msqdt*add_slides*' . $p . '_val', picto('add')) . ' ';
}
return divc('', $ret);
}